Struct llvm_kaleidoscope_rs::llvm::BasicBlock
source · [−]pub struct BasicBlock<'llvm>(_, _);
Expand description
Wrapper for a LLVM Basic Block.
Implementations
sourceimpl<'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
sourceimpl<'llvm> Clone for BasicBlock<'llvm>
impl<'llvm> Clone for BasicBlock<'llvm>
sourcefn clone(&self) -> BasicBlock<'llvm>
fn clone(&self) -> BasicBlock<'llvm>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more