Skip to main content

Census

Struct Census 

Source
pub struct Census<'v, 's, S: RangeSource> { /* private fields */ }
Expand description

Retains every original member role in CD order, including duplicates, reserved names and unreadable members. One pooled name buffer remains in the archive; this catalogue stores only fixed-size classifications.

Implementations§

Source§

impl<'v, 's, S: RangeSource> Census<'v, 's, S>

Source

pub fn read<W: Work>( archive: &'v Archive<'s, S>, work: &W, ) -> Result<Self, Error<S::Error>>

Performs a paid metadata pass under both the source and current query.

§Panics

An internal catalogue invariant fails if a bounded original ordinal is absent.

Source

pub fn archive(&self) -> &'v Archive<'s, S>

The complete immutable ZIP occurrence census.

Source

pub fn len(&self) -> usize

Number of original members, never the number of unique names.

Source

pub fn is_empty(&self) -> bool

Whether the original census is empty.

Source

pub fn occurrence<W: Work>( &self, ordinal: usize, work: &W, ) -> OccurrenceResult<'v, 's, S>

Selects one original occurrence and its paid role under this query.

Source

pub fn mimetypes<'q, W: Work>( &'q self, work: &'q W, ) -> impl Iterator<Item = SourceResult<MimetypeHeader<<S as RangeSource>::Document, <S as RangeSource>::Generation>, S>> + use<'q, 'v, 's, S, W>

Complete mimetype occurrence traversal. Failure fuses this query, and an absent optional member never becomes a fabricated default media type.

Auto Trait Implementations§

§

impl<'v, 's, S> !Freeze for Census<'v, 's, S>

§

impl<'v, 's, S> !RefUnwindSafe for Census<'v, 's, S>

§

impl<'v, 's, S> !Send for Census<'v, 's, S>

§

impl<'v, 's, S> !Sync for Census<'v, 's, S>

§

impl<'v, 's, S> !UnwindSafe for Census<'v, 's, S>

§

impl<'v, 's, S> Unpin for Census<'v, 's, S>

§

impl<'v, 's, S> UnsafeUnpin for Census<'v, 's, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.