Struct stack_dst::ValueA
[−]
[src]
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> Deref for ValueA<T, D>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.