Struct pelite::image::IMAGE_VERSION
source · [−]#[repr(C)]pub struct IMAGE_VERSION<T> {
pub Major: T,
pub Minor: T,
}
Fields
Major: T
Minor: T
Trait Implementations
sourceimpl<T: Clone> Clone for IMAGE_VERSION<T>
impl<T: Clone> Clone for IMAGE_VERSION<T>
sourcefn clone(&self) -> IMAGE_VERSION<T>
fn clone(&self) -> IMAGE_VERSION<T>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Display> Debug for IMAGE_VERSION<T>
impl<T: Display> Debug for IMAGE_VERSION<T>
sourceimpl<T: Display> Display for IMAGE_VERSION<T>
impl<T: Display> Display for IMAGE_VERSION<T>
sourceimpl<T: Ord> Ord for IMAGE_VERSION<T>
impl<T: Ord> Ord for IMAGE_VERSION<T>
sourcefn cmp(&self, other: &IMAGE_VERSION<T>) -> Ordering
fn cmp(&self, other: &IMAGE_VERSION<T>) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq> PartialEq<IMAGE_VERSION<T>> for IMAGE_VERSION<T>
impl<T: PartialEq> PartialEq<IMAGE_VERSION<T>> for IMAGE_VERSION<T>
sourcefn eq(&self, other: &IMAGE_VERSION<T>) -> bool
fn eq(&self, other: &IMAGE_VERSION<T>) -> bool
sourceimpl<T: PartialOrd> PartialOrd<IMAGE_VERSION<T>> for IMAGE_VERSION<T>
impl<T: PartialOrd> PartialOrd<IMAGE_VERSION<T>> for IMAGE_VERSION<T>
sourcefn partial_cmp(&self, other: &IMAGE_VERSION<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &IMAGE_VERSION<T>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl<T: Pod> Pod for IMAGE_VERSION<T>
impl<T: Pod> Pod for IMAGE_VERSION<T>
sourcefn as_bytes(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn as_bytes(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Returns the object’s memory as a byte slice.
sourcefn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Returns the object’s memory as a mutable byte slice.
sourcefn as_data_view(&self) -> &DataView
fn as_data_view(&self) -> &DataView
Returns a data view into the object’s memory.
sourcefn as_data_view_mut(&mut self) -> &mut DataView
fn as_data_view_mut(&mut self) -> &mut DataView
Returns a mutable data view into the object’s memory.
sourcefn transmute_ref<T>(&self) -> &Twhere
T: Pod,
fn transmute_ref<T>(&self) -> &Twhere
T: Pod,
Safely transmutes references to another type. Read more
sourcefn transmute_mut<T>(&mut self) -> &mut Twhere
T: Pod,
fn transmute_mut<T>(&mut self) -> &mut Twhere
T: Pod,
Safely transmutes references to another type. Read more
impl<T: Copy> Copy for IMAGE_VERSION<T>
impl<T: Eq> Eq for IMAGE_VERSION<T>
impl<T> StructuralEq for IMAGE_VERSION<T>
impl<T> StructuralPartialEq for IMAGE_VERSION<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for IMAGE_VERSION<T>where
T: RefUnwindSafe,
impl<T> Send for IMAGE_VERSION<T>where
T: Send,
impl<T> Sync for IMAGE_VERSION<T>where
T: Sync,
impl<T> Unpin for IMAGE_VERSION<T>where
T: Unpin,
impl<T> UnwindSafe for IMAGE_VERSION<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more