pub struct ModeVersion(/* private fields */);Expand description
Determines which modes can be parsed.
As modes have been added over time, this versioning mechanism helps with supporting compatibility.
This allows upgrading to a new version of the library, including more modes, while using this version to determine which modes are supported at runtime.
Implementations§
Trait Implementations§
Source§impl Clone for ModeVersion
impl Clone for ModeVersion
Source§fn clone(&self) -> ModeVersion
fn clone(&self) -> ModeVersion
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 Ord for ModeVersion
impl Ord for ModeVersion
Source§fn cmp(&self, other: &ModeVersion) -> Ordering
fn cmp(&self, other: &ModeVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ModeVersion
impl PartialEq for ModeVersion
Source§impl PartialOrd for ModeVersion
impl PartialOrd for ModeVersion
impl Copy for ModeVersion
impl Eq for ModeVersion
impl StructuralPartialEq for ModeVersion
Auto Trait Implementations§
impl Freeze for ModeVersion
impl RefUnwindSafe for ModeVersion
impl Send for ModeVersion
impl Sync for ModeVersion
impl Unpin for ModeVersion
impl UnsafeUnpin for ModeVersion
impl UnwindSafe for ModeVersion
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