[][src]Struct zim::Cluster

pub struct Cluster<'a>(_);

A cluster of blobs

Within an ZIM archive, clusters contain several blobs of data that are all compressed together. Each blob is the data for an article.

Methods

impl<'a> Cluster<'a>[src]

pub fn new(
    master_view: &'a Mmap,
    cluster_list: &'a Vec<u64>,
    idx: u32,
    checksum_pos: u64,
    version: u16
) -> Result<Cluster<'a>, Error>
[src]

pub fn decompress(&self) -> Result<(), Error>[src]

pub fn get_blob<'b: 'a>(&'b self, idx: u32) -> Result<Blob<'a, 'b>, Error>[src]

Trait Implementations

impl<'a> Clone for Cluster<'a>[src]

impl<'a> Debug for Cluster<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Cluster<'a>

impl<'a> Send for Cluster<'a>

impl<'a> Sync for Cluster<'a>

impl<'a> Unpin for Cluster<'a>

impl<'a> UnwindSafe for Cluster<'a>

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> Same<T> for T

type Output = T

Should always be Self

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.