#[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
Source§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
const NAME: &'static str = "BlockInfoCode"
type Primitive = u8
type Error = TryFromPrimitiveError<BlockInfoCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BlockInfoCode
Auto Trait Implementations§
impl Freeze for BlockInfoCode
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