Struct llvm_bitcode::read::BitStreamReader[][src]

pub struct BitStreamReader<'a> { /* fields omitted */ }

Bitstream reader

Implementations

impl<'a> BitStreamReader<'a>[src]

pub const TOP_LEVEL_BLOCK_ID: u64[src]

Top level fake block ID

pub fn new(buffer: &'a [u8]) -> Self[src]

Create a new reader from bytes

pub fn read_signature(&mut self) -> Result<Signature, Error>[src]

Read signature, aka. Magic Number

pub fn read_abbrev_op(&mut self) -> Result<Operand, Error>[src]

Read abbreviated operand

pub fn read_abbrev(&mut self, num_ops: usize) -> Result<Abbreviation, Error>[src]

Read abbreviation

pub fn read_abbreviated_record(
    &mut self,
    abbrev: &Abbreviation
) -> Result<Record, Error>
[src]

Read abbreviated data record

pub fn read_block_info_block(
    &mut self,
    abbrev_width: usize
) -> Result<(), Error>
[src]

Read block info block

pub fn read_block<V: BitStreamVisitor>(
    &mut self,
    id: u64,
    abbrev_width: usize,
    visitor: &mut V
) -> Result<(), Error>
[src]

Read block with visitor

Trait Implementations

impl<'a> Clone for BitStreamReader<'a>[src]

impl<'a> Debug for BitStreamReader<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.