Enum llvm_bitcode::bitcode::BitcodeElement [−][src]
Bitcode element
Variants
Block(Block)Block
Record(Record)Data record
Implementations
impl BitcodeElement[src]
pub fn is_block(&self) -> bool[src]
Returns true if it is a Block
pub fn as_block(&self) -> Option<&Block>[src]
If it is a Block, returns the associated block. Returns None otherwise.
pub fn as_block_mut(&mut self) -> Option<&mut Block>[src]
If it is a Block, returns the associated mutable block. Returns None otherwise.
pub fn is_record(&self) -> bool[src]
Returns true if it is a Record
pub fn as_record(&self) -> Option<&Record>[src]
If it is a Record, returns the associated record. Returns None otherwise.
pub fn as_record_mut(&mut self) -> Option<&mut Record>[src]
If it is a Record, returns the associated mutable record. Returns None otherwise.
Trait Implementations
impl Clone for BitcodeElement[src]
fn clone(&self) -> BitcodeElement[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for BitcodeElement[src]
Auto Trait Implementations
impl RefUnwindSafe for BitcodeElement[src]
impl Send for BitcodeElement[src]
impl Sync for BitcodeElement[src]
impl Unpin for BitcodeElement[src]
impl UnwindSafe for BitcodeElement[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>,