#[non_exhaustive]pub enum RustcVersionVerboseParseError {
InvalidUtf8(FromUtf8Error),
MissingHostLine {
output: String,
},
}
Expand description
An error occurred while parsing rustc -vV
output.
Returned by Platform::from_rustc_version_verbose
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidUtf8(FromUtf8Error)
The output was invalid UTF-8.
MissingHostLine
The output did not contain a host:
line.
Trait Implementations§
Source§impl Clone for RustcVersionVerboseParseError
impl Clone for RustcVersionVerboseParseError
Source§fn clone(&self) -> RustcVersionVerboseParseError
fn clone(&self) -> RustcVersionVerboseParseError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Error for RustcVersionVerboseParseError
impl Error for RustcVersionVerboseParseError
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()
Auto Trait Implementations§
impl Freeze for RustcVersionVerboseParseError
impl RefUnwindSafe for RustcVersionVerboseParseError
impl Send for RustcVersionVerboseParseError
impl Sync for RustcVersionVerboseParseError
impl Unpin for RustcVersionVerboseParseError
impl UnwindSafe for RustcVersionVerboseParseError
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