[][src]Struct uapi::AssertPacked

#[repr(transparent)]pub struct AssertPacked<T: ?Sized>(_);

Transparent wrapper that asserts that a type is Packed

Implementations

impl<T: ?Sized> AssertPacked<T>[src]

pub unsafe fn new(t: &T) -> &Self[src]

Wraps a &T

Safety

T must follow the Packed contract.

Trait Implementations

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

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

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

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

type Target = T

The resulting type after dereferencing.

impl<T: Eq + ?Sized> Eq for AssertPacked<T>[src]

impl<T: Ord + ?Sized> Ord for AssertPacked<T>[src]

impl<T: ?Sized> Packed for AssertPacked<T>[src]

impl<T: PartialEq + ?Sized> PartialEq<AssertPacked<T>> for AssertPacked<T>[src]

impl<T: PartialOrd + ?Sized> PartialOrd<AssertPacked<T>> for AssertPacked<T>[src]

impl<T: ?Sized> StructuralEq for AssertPacked<T>[src]

impl<T: ?Sized> StructuralPartialEq for AssertPacked<T>[src]

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for AssertPacked<T> where
    T: RefUnwindSafe

impl<T: ?Sized> Send for AssertPacked<T> where
    T: Send

impl<T: ?Sized> Sync for AssertPacked<T> where
    T: Sync

impl<T: ?Sized> Unpin for AssertPacked<T> where
    T: Unpin

impl<T: ?Sized> UnwindSafe for AssertPacked<T> where
    T: UnwindSafe

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.