[−][src]Struct aligned::Aligned
A newtype with alignment of at least A
bytes
Trait Implementations
impl<A, T> AsMutSlice for Aligned<A, T> where
A: Alignment,
T: AsMutSlice,
[src]
A: Alignment,
T: AsMutSlice,
fn as_mut_slice(&mut self) -> &mut [T::Element]
[src]
impl<A, T> AsSlice for Aligned<A, T> where
A: Alignment,
T: AsSlice,
[src]
A: Alignment,
T: AsSlice,
type Element = T::Element
The element type of the slice view
fn as_slice(&self) -> &[T::Element]
[src]
impl<A, T> Clone for Aligned<A, T> where
A: Alignment,
T: Clone,
[src]
A: Alignment,
T: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A, T> Debug for Aligned<A, T> where
A: Alignment,
T: Debug,
[src]
A: Alignment,
T: Debug,
impl<A, T> Default for Aligned<A, T> where
A: Alignment,
T: Default,
[src]
A: Alignment,
T: Default,
impl<A, T> Deref for Aligned<A, T> where
A: Alignment,
T: ?Sized,
[src]
A: Alignment,
T: ?Sized,
impl<A, T> DerefMut for Aligned<A, T> where
A: Alignment,
T: ?Sized,
[src]
A: Alignment,
T: ?Sized,
impl<A, T> Display for Aligned<A, T> where
A: Alignment,
T: Display,
[src]
A: Alignment,
T: Display,
impl<A, T> Eq for Aligned<A, T> where
A: Alignment,
T: Eq,
[src]
A: Alignment,
T: Eq,
impl<A, T> Hash for Aligned<A, T> where
A: Alignment,
T: Hash,
[src]
A: Alignment,
T: Hash,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A, T> Index<RangeTo<usize>> for Aligned<A, [T]> where
A: Alignment,
[src]
A: Alignment,
type Output = Aligned<A, [T]>
The returned type after indexing.
fn index(&self, range: RangeTo<usize>) -> &Aligned<A, [T]>
[src]
impl<A, T> Ord for Aligned<A, T> where
A: Alignment,
T: Ord,
[src]
A: Alignment,
T: Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<A, T> PartialEq<Aligned<A, T>> for Aligned<A, T> where
A: Alignment,
T: PartialEq,
[src]
A: Alignment,
T: PartialEq,
impl<A, T> PartialOrd<Aligned<A, T>> for Aligned<A, T> where
A: Alignment,
T: PartialOrd,
[src]
A: Alignment,
T: PartialOrd,
Auto Trait Implementations
impl<A, T: ?Sized> Send for Aligned<A, T> where
A: Send,
T: Send,
A: Send,
T: Send,
impl<A, T: ?Sized> Sync for Aligned<A, T> where
A: Sync,
T: Sync,
A: Sync,
T: Sync,
impl<A, T: ?Sized> Unpin for Aligned<A, T> where
A: Unpin,
T: Unpin,
A: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,