[][src]Struct aligned_utils::stack::Align2

#[repr(align(2))]pub struct Align2<T: ?Sized>(pub T);

A newtype with alignment of at least 2 bytes

Trait Implementations

impl<T: Clone + ?Sized> Clone for Align2<T>[src]

impl<T: Copy + ?Sized> Copy for Align2<T>[src]

impl<T: Debug + ?Sized> Debug for Align2<T>[src]

impl<T: ?Sized> Deref for Align2<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for Align2<T>[src]

Auto Trait Implementations

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

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

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

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

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

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.