Struct caffe2_imports::Aligned
source · pub struct Aligned<A, T>where
T: ?Sized,{ /* private fields */ }
Expand description
A newtype with alignment of at least A
bytes
Trait Implementations§
source§impl<A, T> AsMutSlice for Aligned<A, T>where
A: Alignment,
T: AsMutSlice,
impl<A, T> AsMutSlice for Aligned<A, T>where A: Alignment, T: AsMutSlice,
source§fn as_mut_slice(&mut self) -> &mut [<T as AsSlice>::Element]
fn as_mut_slice(&mut self) -> &mut [<T as AsSlice>::Element]
Returns the mutable slice view of
Self
source§impl<A, T> Ord for Aligned<A, T>where
A: Alignment,
T: Ord,
impl<A, T> Ord for Aligned<A, T>where A: Alignment, T: Ord,
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<A, T> PartialEq<Aligned<A, T>> for Aligned<A, T>where
A: Alignment,
T: PartialEq<T>,
impl<A, T> PartialEq<Aligned<A, T>> for Aligned<A, T>where A: Alignment, T: PartialEq<T>,
source§impl<A, T> PartialOrd<Aligned<A, T>> for Aligned<A, T>where
A: Alignment,
T: PartialOrd<T>,
impl<A, T> PartialOrd<Aligned<A, T>> for Aligned<A, T>where A: Alignment, T: PartialOrd<T>,
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<A, T> Copy for Aligned<A, T>where A: Alignment, T: Copy,
impl<A, T> Eq for Aligned<A, T>where A: Alignment, T: Eq,
Auto Trait Implementations§
impl<A, T: ?Sized> RefUnwindSafe for Aligned<A, T>where A: RefUnwindSafe, T: RefUnwindSafe,
impl<A, T: ?Sized> Send for Aligned<A, T>where A: Send, T: Send,
impl<A, T: ?Sized> Sync for Aligned<A, T>where A: Sync, T: Sync,
impl<A, T: ?Sized> Unpin for Aligned<A, T>where A: Unpin, T: Unpin,
impl<A, T: ?Sized> UnwindSafe for Aligned<A, T>where A: UnwindSafe, T: UnwindSafe,
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.