[][src]Struct stack_dst::ValueA

pub struct ValueA<T: ?Sized, D: DataBuf> { /* fields omitted */ }

Stack-allocated dynamically sized type

T is the unsized type contaned. D is the buffer used to hold the unsized type (both data and metadata).

Methods

impl<T: ?Sized, D: DataBuf> ValueA<T, D>[src]

pub fn new<U: Unsize<T>>(val: U) -> Result<ValueA<T, D>, U>[src]

Construct a stack-based DST

Returns Ok(dst) if the allocation was successful, or Err(val) if it failed

Trait Implementations

impl<T: ?Sized, D: DataBuf> Drop for ValueA<T, D>[src]

impl<T: ?Sized, D: DataBuf> DerefMut for ValueA<T, D>[src]

impl<T: ?Sized, D: DataBuf> Deref for ValueA<T, D>[src]

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<T: ?Sized, D> Unpin for ValueA<T, D> where
    D: Unpin,
    T: Unpin

impl<T: ?Sized, D> Sync for ValueA<T, D> where
    D: Sync,
    T: Sync

impl<T: ?Sized, D> Send for ValueA<T, D> where
    D: Send,
    T: Send

impl<T: ?Sized, D> UnwindSafe for ValueA<T, D> where
    D: UnwindSafe,
    T: UnwindSafe

impl<T: ?Sized, D> RefUnwindSafe for ValueA<T, D> where
    D: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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