Skip to main content

Reader

Struct Reader 

Source
pub struct Reader { /* private fields */ }
Expand description

The cutter’s reader: the head trees, and the peek tree of each type of X’s own files, built once, in a hash table by the type’s tree, charged to M_X (one entry per type a name is read of: as many as the input has objects, so a sorted table’s inserts would be quadratic, B3’s review round 1). A dependency’s tree is never kept: its peek tree is built, read with and dropped in the read (docs/plans/batch.md 2.6 step 7; review round 2’s S3).

Implementations§

Source§

impl Reader

Source

pub fn new(meter: &Arc<Meter>) -> Result<Self, Class>

The reader, its head trees compiled. They are fixed rows, so their failing is the cutter’s own fault, internal, whatever the core says.

Source

pub fn head(&self, obj: &ObjectRef) -> Result<Head, Class>

obj’s head, read with the fixed rows ([head_rows]), check_read off.

Trait Implementations§

Source§

impl Debug for Reader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Reader

§

impl !UnwindSafe for Reader

§

impl Forget for Reader

§

impl Freeze for Reader

§

impl Move for Reader

§

impl Send for Reader

§

impl Sync for Reader

§

impl Unpin for Reader

§

impl UnsafeUnpin for Reader

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

Source§

type Output = T

Should always be Self
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.