Enum llvm_bitcode::bitstream::BlockInfoCode
source · #[repr(u8)]pub enum BlockInfoCode {
SetBid = 1,
BlockName = 2,
SetRecordName = 3,
}
Expand description
A BlockInfoCode
enumerates the bits that occur in the metadata for
a block or record. Of these bits, only SetBid
is required. If
a name is given to a block or record with BlockName
or
SetRecordName
, debugging tools like llvm-bcanalyzer
can be used to
introspect the structure of blocks and records in the bitstream file.
Variants§
SetBid = 1
Indicates which block ID is being described.
BlockName = 2
An optional element that records which bytes of the record are the name of the block.
SetRecordName = 3
An optional element that records the record ID number and the bytes for the name of the corresponding record.
Trait Implementations§
source§impl Clone for BlockInfoCode
impl Clone for BlockInfoCode
source§fn clone(&self) -> BlockInfoCode
fn clone(&self) -> BlockInfoCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockInfoCode
impl Debug for BlockInfoCode
source§impl TryFrom<u8> for BlockInfoCode
impl TryFrom<u8> for BlockInfoCode
§type Error = TryFromPrimitiveError<BlockInfoCode>
type Error = TryFromPrimitiveError<BlockInfoCode>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for BlockInfoCode
impl TryFromPrimitive for BlockInfoCode
type Primitive = u8
type Error = TryFromPrimitiveError<BlockInfoCode>
const NAME: &'static str = "BlockInfoCode"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BlockInfoCode
Auto Trait Implementations§
impl RefUnwindSafe for BlockInfoCode
impl Send for BlockInfoCode
impl Sync for BlockInfoCode
impl Unpin for BlockInfoCode
impl UnwindSafe for BlockInfoCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more