Struct move_binary_format::binary_views::FunctionView
source · [−]pub struct FunctionView<'a> { /* private fields */ }
Implementations
sourceimpl<'a> FunctionView<'a>
impl<'a> FunctionView<'a>
pub fn function(
module: &'a CompiledModule,
index: FunctionDefinitionIndex,
code: &'a CodeUnit,
function_handle: &'a FunctionHandle
) -> Self
pub fn script(script: &'a CompiledScript) -> Self
pub fn index(&self) -> Option<FunctionDefinitionIndex>
pub fn code(&self) -> &CodeUnit
pub fn parameters(&self) -> &Signature
pub fn return_(&self) -> &Signature
pub fn locals(&self) -> &Signature
pub fn type_parameters(&self) -> &[AbilitySet]
pub fn cfg(&self) -> &VMControlFlowGraph
Auto Trait Implementations
impl<'a> RefUnwindSafe for FunctionView<'a>
impl<'a> Send for FunctionView<'a>
impl<'a> Sync for FunctionView<'a>
impl<'a> Unpin for FunctionView<'a>
impl<'a> UnwindSafe for FunctionView<'a>
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