[][src]Struct uapi::AssertPod

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

Transparent wrapper that asserts that a type is Pod

Implementations

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

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

Wraps a &mut T

Safety

T must follow the Pod contract.

impl<T> AssertPod<T>[src]

pub unsafe fn unwrap(self) -> T[src]

Unwraps the contained object

Safety

T must follow the Pod contract.

Trait Implementations

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

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

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

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

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

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

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

impl<T: ?Sized> Pod for AssertPod<T>[src]

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

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

Auto Trait Implementations

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

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

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

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

impl<T: ?Sized> UnwindSafe for AssertPod<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.