[][src]Struct aligned::Aligned

#[repr(C)]pub struct Aligned<A, T> where
    T: ?Sized
{ /* fields omitted */ }

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]

impl<A, T> AsSlice for Aligned<A, T> where
    A: Alignment,
    T: AsSlice
[src]

type Element = T::Element

The element type of the slice view

impl<A, T> Clone for Aligned<A, T> where
    A: Alignment,
    T: Clone
[src]

impl<A, T> Debug for Aligned<A, T> where
    A: Alignment,
    T: Debug
[src]

impl<A, T> Default for Aligned<A, T> where
    A: Alignment,
    T: Default
[src]

impl<A, T> Deref for Aligned<A, T> where
    A: Alignment,
    T: ?Sized
[src]

type Target = T

The resulting type after dereferencing.

impl<A, T> DerefMut for Aligned<A, T> where
    A: Alignment,
    T: ?Sized
[src]

impl<A, T> Display for Aligned<A, T> where
    A: Alignment,
    T: Display
[src]

impl<A, T> Eq for Aligned<A, T> where
    A: Alignment,
    T: Eq
[src]

impl<A, T> Hash for Aligned<A, T> where
    A: Alignment,
    T: Hash
[src]

impl<A, T> Index<RangeTo<usize>> for Aligned<A, [T]> where
    A: Alignment, 
[src]

type Output = Aligned<A, [T]>

The returned type after indexing.

impl<A, T> Ord for Aligned<A, T> where
    A: Alignment,
    T: Ord
[src]

impl<A, T> PartialEq<Aligned<A, T>> for Aligned<A, T> where
    A: Alignment,
    T: PartialEq
[src]

impl<A, T> PartialOrd<Aligned<A, T>> for Aligned<A, T> where
    A: Alignment,
    T: PartialOrd
[src]

Auto Trait Implementations

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.