pub enum Version {
V1,
Unknown(u8),
}
Expand description
Supported Saltlick file format version.
Variants§
Implementations§
source§impl Version
impl Version
sourcepub fn from_u8(value: u8) -> Version
pub fn from_u8(value: u8) -> Version
Convert a u8 representation to a version.
Note: the conversion is infalliable, but it is important to check that
the version decoded is an understood one, as any unknown values map to
the Unknown
variant.
sourcepub fn is_unknown(self) -> bool
pub fn is_unknown(self) -> bool
True if this is not a known version.
Trait Implementations§
source§impl Ord for Version
impl Ord for Version
source§impl PartialEq for Version
impl PartialEq for Version
source§impl PartialOrd for Version
impl PartialOrd for Version
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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