Struct ClangVersion
pub struct ClangVersion { pub parsed: Option<(u32, u32)>, pub full: String }
Extracted Clang version data
Fields
parsed: Option<(u32, u32)>Major and minor semver, if parsing was successful
full: Stringfull version string
Trait Implementations
impl Debug for ClangVersion
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl Freeze for ClangVersion
impl RefUnwindSafe for ClangVersion
impl Send for ClangVersion
impl Sync for ClangVersion
impl Unpin for ClangVersion
impl UnsafeUnpin for ClangVersion
impl UnwindSafe for ClangVersion
Blanket Implementations
impl<T> Any for ClangVersion
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ClangVersion
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ClangVersion
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ClangVersion
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for ClangVersion
impl<T, U> Into<U> for ClangVersion
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ClangVersion
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ClangVersion
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>