[−][src]Struct zim::Cluster
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]
master_view: &'a Mmap,
cluster_list: &'a Vec<u64>,
idx: u32,
checksum_pos: u64,
version: u16
) -> Result<Cluster<'a>, Error>
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
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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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>,