#[repr(C)]pub struct FunctionObj {
pub params: Array<Var>,
pub ret_type: Type,
pub body: SeqStmt,
/* private fields */
}Expand description
Complete: reflected fields fill [48, 72) exactly.
Fields§
§params: Array<Var>§ret_type: Type§body: SeqStmtTrait Implementations§
Source§impl Deref for FunctionObj
impl Deref for FunctionObj
Source§type Target = BaseFuncObj
type Target = BaseFuncObj
The resulting type after dereferencing.
Source§fn deref(&self) -> &BaseFuncObj
fn deref(&self) -> &BaseFuncObj
Dereferences the value.
Source§impl<'a> From<&'a FunctionObj> for AnyView<'a>
impl<'a> From<&'a FunctionObj> for AnyView<'a>
Source§fn from(value: &'a FunctionObj) -> Self
fn from(value: &'a FunctionObj) -> Self
Converts to this type from the input type.
Source§impl ObjectCore for FunctionObj
impl ObjectCore for FunctionObj
Source§const TYPE_DEPTH: i32 = 3i32
const TYPE_DEPTH: i32 = 3i32
Depth of this type in the object inheritance tree. Read more
fn type_index() -> i32
Source§unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
Return the object header
This function is implemented as a static function so Read more
Auto Trait Implementations§
impl !Freeze for FunctionObj
impl RefUnwindSafe for FunctionObj
impl !Send for FunctionObj
impl !Sync for FunctionObj
impl Unpin for FunctionObj
impl UnwindSafe for FunctionObj
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