Struct llvm_mapper::unroll::UnrolledBlock[][src]

pub struct UnrolledBlock {
    pub id: BlockId,
    // some fields omitted
}
Expand description

A fully unrolled block within the bitstream, with potential records and sub-blocks.

Fields

id: BlockId

This block’s ID.

Implementations

Get zero or one records from this block by the given record code.

Returns an error if the block has more than one record for this code.

Get a single record from this block by its record code.

Returns an error if the block either lacks an appropriate record or has more than one.

Return an iterator for all records that share the given code. Records are iterated in the order of insertion.

The returned iterator is empty if the block doesn’t have any matching records.

Return an iterator over all records in the block, regardless of their codes. Records are iterated in the order of insertion.

This is useful in contexts where the mapper’s behavior does not vary significantly by record code, such as within the type table mapper.

Return an iterator over all sub-blocks within this block that share the given ID.

The returned iterator is empty if the block doesn’t have any matching sub-blocks.

Get zero or one sub-blocks from this block by the given block ID.

Returns an error if the block has more than one matching sub-block.

Get a single sub-block from this block by its block ID.

Returns an error if the block either lacks an appropriate block or has more than one.

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

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.