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
Auto Trait Implementations
impl RefUnwindSafe for UnrolledBlock
impl Send for UnrolledBlock
impl Sync for UnrolledBlock
impl Unpin for UnrolledBlock
impl UnwindSafe for UnrolledBlock
Blanket Implementations
Mutably borrows from an owned value. Read more