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 Freeze for BitcodeElement
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