Enum llvm_bitstream::parser::StreamEntry[][src]

pub enum StreamEntry {
    EndBlock,
    SubBlock(Block),
    Record(Record),
}
Expand description

The kinds of entries we can see while advancing through the bitstream. Abbreviations are handled transparently by the parser, and thus are never surfaced as StreamEntry values.

Variants

EndBlock

The end of a block scope.

SubBlock(Block)

The beginning of a new block scope, for a block with the given ID.

Tuple Fields of SubBlock

0: Block
Record(Record)

The beginning of a new record within the current scope, with the given abbreviation ID.

Tuple Fields of Record

0: Record

Implementations

Consumes this StreamEntry and returns its inner Block, if it is in fact a block.

If the entry is not a block, returns `None.

Trait Implementations

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 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.