Struct llvm_bitcode::read::BitStreamReader [−][src]
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]
&mut self,
abbrev: &Abbreviation
) -> Result<Record, Error>
Read abbreviated data record
pub fn read_block_info_block(
&mut self,
abbrev_width: usize
) -> Result<(), Error>
[src]
&mut self,
abbrev_width: usize
) -> Result<(), Error>
Read block info block
pub fn read_block<V: BitStreamVisitor>(
&mut self,
id: u64,
abbrev_width: usize,
visitor: &mut V
) -> Result<(), Error>
[src]
&mut self,
id: u64,
abbrev_width: usize,
visitor: &mut V
) -> Result<(), Error>
Read block with visitor
Trait Implementations
impl<'a> Clone for BitStreamReader<'a>
[src]
fn clone(&self) -> BitStreamReader<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for BitStreamReader<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for BitStreamReader<'a>
[src]
impl<'a> Send for BitStreamReader<'a>
[src]
impl<'a> Sync for BitStreamReader<'a>
[src]
impl<'a> Unpin for BitStreamReader<'a>
[src]
impl<'a> UnwindSafe for BitStreamReader<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,