Struct bincode::SliceBox
[−]
[src]
pub struct SliceBox<'a, T: 'a> { // some fields omitted }
Like a RefBox, but encodes from a [T]
and encodes to a Vec<T>
.
Methods
impl<'a, T> SliceBox<'a, T>
[src]
impl<T> SliceBox<'static, T>
[src]
fn take(self) -> Vec<T>
Takes the value out of this refbox.
Fails if this refbox was not created out of a deserialization.
Unless you are doing some really weird things with static references, this function will never fail.
fn try_take(self) -> Result<Vec<T>, SliceBox<'static, T>>
Tries to take the value out of this refbox.