pub struct Log<'a, S, T> {
    pub state: &'a mut LogState,
    /* private fields */
}
Expand description

A generic log parameterized by its storage type S and log entry type T.

Fields

state: &'a mut LogState

Implementations

Return Log by initializing it with a LogState and a StorageStack.

Add a new entry to the log. Return None if the log is full, or storage is full.

Return number of entries in the log.

Look up a log entry by index. Return None if the index is out of range, or it fails to read the entry.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.