[][src]Struct vec_saver::data::Data

pub struct Data {
    pub data: Vec<u8>,
}

Fields

data: Vec<u8>

Methods

impl Data[src]

pub fn new(data: Vec<u8>) -> Data[src]

pub fn save(&self, filename: &str) -> bool[src]

pub fn load(&mut self, filename: &str) -> bool[src]

Trait Implementations

impl ToTrait for Data[src]

Auto Trait Implementations

impl Sync for Data

impl Send for Data

impl Unpin for Data

impl RefUnwindSafe for Data

impl UnwindSafe for Data

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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]