[][src]Struct jagged::Archive

pub struct Archive { /* fields omitted */ }

Implementations

impl Archive[src]

pub fn new() -> Self[src]

Creates a new archive with an empty entry table.

impl Archive[src]

pub fn contains_key<S>(&self, key: S) -> bool where
    S: Into<String>, 
[src]

Returns true if the entry table contains the specified key.

pub fn remove<S>(&mut self, key: S) -> Option<Vec<u8>> where
    S: Into<String>, 
[src]

Removes an entry.

pub fn clear(&mut self)[src]

Clears the entry table of this archive

pub fn len(&self) -> usize[src]

Returns the number of entries this archive contains.

pub fn is_empty(&self) -> bool[src]

Returns true if the archive contains no entries

Trait Implementations

impl Clone for Archive[src]

impl Debug for Archive[src]

impl Default for Archive[src]

impl ReadArchive for Archive[src]

impl<'_> TryFrom<&'_ Path> for Archive[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(path: &Path) -> Result<Self, Error>[src]

Attempts to read an existing archive from disk into a new archive.

impl WriteArchive for Archive[src]

Auto Trait Implementations

impl RefUnwindSafe for Archive

impl Send for Archive

impl Sync for Archive

impl Unpin for Archive

impl UnwindSafe for Archive

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.