Enum llvm_bitcode::bitcode::BitcodeElement
source · pub enum BitcodeElement {
Block(Block),
Record(Record),
}
Expand description
Bitcode element
Variants§
Implementations§
source§impl BitcodeElement
impl BitcodeElement
sourcepub fn as_block(&self) -> Option<&Block>
pub fn as_block(&self) -> Option<&Block>
If it is a Block
, returns the associated block. Returns None
otherwise.
sourcepub fn as_block_mut(&mut self) -> Option<&mut Block>
pub fn as_block_mut(&mut self) -> Option<&mut Block>
If it is a Block
, returns the associated mutable block. Returns None
otherwise.
sourcepub fn as_record(&self) -> Option<&Record>
pub fn as_record(&self) -> Option<&Record>
If it is a Record
, returns the associated record. Returns None
otherwise.
sourcepub fn as_record_mut(&mut self) -> Option<&mut Record>
pub fn as_record_mut(&mut self) -> Option<&mut Record>
If it is a Record
, returns the associated mutable record. Returns None
otherwise.
Trait Implementations§
source§impl Clone for BitcodeElement
impl Clone for BitcodeElement
source§fn clone(&self) -> BitcodeElement
fn clone(&self) -> BitcodeElement
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 moreAuto Trait Implementations§
impl RefUnwindSafe for BitcodeElement
impl Send for BitcodeElement
impl Sync for BitcodeElement
impl Unpin for BitcodeElement
impl UnwindSafe for BitcodeElement
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