[−][src]Struct stack_dst::ValueA
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> Deref for ValueA<T, D>
[src]
impl<T: ?Sized, D: DataBuf> DerefMut for ValueA<T, D>
[src]
Auto Trait Implementations
impl<T: ?Sized, D> Send for ValueA<T, D> where
D: Send,
T: Send,
D: Send,
T: Send,
impl<T: ?Sized, D> Sync for ValueA<T, D> where
D: Sync,
T: Sync,
D: Sync,
T: Sync,
impl<T: ?Sized, D> Unpin for ValueA<T, D> where
D: Unpin,
T: Unpin,
D: Unpin,
T: Unpin,
impl<T: ?Sized, D> UnwindSafe for ValueA<T, D> where
D: UnwindSafe,
T: UnwindSafe,
D: UnwindSafe,
T: UnwindSafe,
impl<T: ?Sized, D> RefUnwindSafe for ValueA<T, D> where
D: RefUnwindSafe,
T: RefUnwindSafe,
D: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,