Struct stack_dst::StackDSTA [] [src]

pub struct StackDSTA<T: ?Sized, D: DataBuf> {
    // some 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> StackDSTA<T, D>
[src]

fn new<U: Unsize<T>>(val: U) -> Result<StackDSTA<T, D>, U>

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> Deref for StackDSTA<T, D>
[src]

type Target = T

The resulting type after dereferencing

fn deref(&self) -> &T

The method called to dereference a value

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

fn deref_mut(&mut self) -> &mut T

The method called to mutably dereference a value

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

fn drop(&mut self)

A method called when the value goes out of scope. Read more