Struct miden_objects::assembly::Version
source · pub struct Version {
pub major: u16,
pub minor: u16,
pub patch: u16,
}Fields§
§major: u16§minor: u16§patch: u16Implementations§
source§impl Version
impl Version
sourcepub fn cmp_major(&self, other: &Version) -> Ordering
pub fn cmp_major(&self, other: &Version) -> Ordering
Compare two versions considering only the major value.
sourcepub fn cmp_minor(&self, other: &Version) -> Ordering
pub fn cmp_minor(&self, other: &Version) -> Ordering
Compare two versions considering only the major and minor values.
Trait Implementations§
source§impl Deserializable for Version
impl Deserializable for Version
source§fn read_from<R>(source: &mut R) -> Result<Version, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<Version, DeserializationError>where
R: ByteReader,
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
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 moresource§impl Serializable for Version
impl Serializable for Version
source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
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