Struct llvm_kaleidoscope_rs::llvm::BasicBlock
source · pub struct BasicBlock<'llvm>(_, _);
Expand description
Wrapper for a LLVM Basic Block.
Implementations§
source§impl<'llvm> BasicBlock<'llvm>
impl<'llvm> BasicBlock<'llvm>
sourcepub fn get_parent(&self) -> FnValue<'llvm>
pub fn get_parent(&self) -> FnValue<'llvm>
Get the function to which the basic block belongs.
Panics
Panics if LLVM API returns a null
pointer.
Trait Implementations§
source§impl<'llvm> Clone for BasicBlock<'llvm>
impl<'llvm> Clone for BasicBlock<'llvm>
source§fn clone(&self) -> BasicBlock<'llvm>
fn clone(&self) -> BasicBlock<'llvm>
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 moreimpl<'llvm> Copy for BasicBlock<'llvm>
Auto Trait Implementations§
impl<'llvm> RefUnwindSafe for BasicBlock<'llvm>
impl<'llvm> !Send for BasicBlock<'llvm>
impl<'llvm> !Sync for BasicBlock<'llvm>
impl<'llvm> Unpin for BasicBlock<'llvm>
impl<'llvm> UnwindSafe for BasicBlock<'llvm>
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