pub enum LlvmVersionParseError {
ParseIntError(ParseIntError),
ComponentMustNotHaveLeadingZeros,
ComponentMustNotHaveSign,
MinorVersionMustBeZeroAfter4,
MinorVersionRequiredBefore4,
TooManyComponents,
}
Expand description
LLVM Version Parse Error
Variants§
ParseIntError(ParseIntError)
An error occurred in parsing a version component as an integer
ComponentMustNotHaveLeadingZeros
A version component must not have leading zeros
ComponentMustNotHaveSign
A version component has a sign
MinorVersionMustBeZeroAfter4
Minor version component must be zero on LLVM versions later than 4.0
MinorVersionRequiredBefore4
Minor version component is required on LLVM versions earlier than 4.0
TooManyComponents
Too many components
Trait Implementations§
source§impl Debug for LlvmVersionParseError
impl Debug for LlvmVersionParseError
source§impl Display for LlvmVersionParseError
impl Display for LlvmVersionParseError
source§impl Error for LlvmVersionParseError
impl Error for LlvmVersionParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<LlvmVersionParseError> for Error
impl From<LlvmVersionParseError> for Error
source§fn from(e: LlvmVersionParseError) -> Error
fn from(e: LlvmVersionParseError) -> Error
Converts to this type from the input type.
source§impl From<ParseIntError> for LlvmVersionParseError
impl From<ParseIntError> for LlvmVersionParseError
source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LlvmVersionParseError
impl RefUnwindSafe for LlvmVersionParseError
impl Send for LlvmVersionParseError
impl Sync for LlvmVersionParseError
impl Unpin for LlvmVersionParseError
impl UnwindSafe for LlvmVersionParseError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more