pub struct CodeBlockTable(_);
Expand description

A map of code block hashes to their underlying code blocks.

This table is used to hold code blocks which are referenced from the program MAST but are actually not a part of the MAST itself. Thus, for example, multiple nodes in the MAST can reference the same code block in the table.

Implementations

Returns a code block for the specified hash, or None if the code block is not present in this table.

Returns true if a code block with the specified hash is present in this table.

Inserts the provided code block into this table.

Returns true if this code block table is empty.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.