pub enum ParseWarning {
Unknown(String),
InvalidAssignment(&'static ExperimentalOption, String),
InvalidAssignmentAll(String),
DeprecatedDefault(&'static ExperimentalOption),
DeprecatedDiscard(&'static ExperimentalOption),
}Expand description
Warnings that can happen while parsing experimental options.
Variants§
Unknown(String)
The given identifier doesn’t match any known experimental option.
InvalidAssignment(&'static ExperimentalOption, String)
The assignment wasn’t valid. Only true or false is accepted.
InvalidAssignmentAll(String)
The assignment for “all” wasn’t valid. Only true or false is accepted.
DeprecatedDefault(&'static ExperimentalOption)
This experimental option is deprecated as this is now the default behavior.
DeprecatedDiscard(&'static ExperimentalOption)
This experimental option is deprecated and will be removed in the future.
Implementations§
Source§impl ParseWarning
impl ParseWarning
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
Returns a duplicate 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 Debug for ParseWarning
impl Debug for ParseWarning
Source§impl Display for ParseWarning
impl Display for ParseWarning
Source§impl Error for ParseWarning
impl Error for ParseWarning
1.30.0 · 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 PartialEq for ParseWarning
impl PartialEq for ParseWarning
impl Eq for ParseWarning
impl StructuralPartialEq for ParseWarning
Auto Trait Implementations§
impl Freeze for ParseWarning
impl !RefUnwindSafe for ParseWarning
impl Send for ParseWarning
impl Sync for ParseWarning
impl Unpin for ParseWarning
impl !UnwindSafe for ParseWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more