#[repr(C)]pub struct ManifestVersion {
pub minor: u16,
pub major: u16,
}
Expand description
A type that holds 2 16-bit values for manifest major and minor format versions.
Fields§
§minor: u16
§major: u16
Trait Implementations§
Source§impl Clone for ManifestVersion
impl Clone for ManifestVersion
Source§fn clone(&self) -> ManifestVersion
fn clone(&self) -> ManifestVersion
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 Debug for ManifestVersion
impl Debug for ManifestVersion
Source§impl Default for ManifestVersion
impl Default for ManifestVersion
Source§fn default() -> ManifestVersion
fn default() -> ManifestVersion
Returns the “default value” for a type. Read more
Source§impl FromBytes for ManifestVersionwhere
u16: FromBytes,
impl FromBytes for ManifestVersionwhere
u16: FromBytes,
Source§impl FromZeros for ManifestVersionwhere
u16: FromZeros,
impl FromZeros for ManifestVersionwhere
u16: FromZeros,
Source§impl IntoBytes for ManifestVersion
impl IntoBytes for ManifestVersion
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl TryFrom<&ManifestVersion> for ManifestVersionDef
impl TryFrom<&ManifestVersion> for ManifestVersionDef
Source§impl TryFromBytes for ManifestVersionwhere
u16: TryFromBytes,
impl TryFromBytes for ManifestVersionwhere
u16: TryFromBytes,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§impl TryInto<ManifestVersion> for ManifestVersionDef
impl TryInto<ManifestVersion> for ManifestVersionDef
impl Copy for ManifestVersion
impl Immutable for ManifestVersionwhere
u16: Immutable,
Auto Trait Implementations§
impl Freeze for ManifestVersion
impl RefUnwindSafe for ManifestVersion
impl Send for ManifestVersion
impl Sync for ManifestVersion
impl Unpin for ManifestVersion
impl UnwindSafe for ManifestVersion
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