pub struct FunctionObj {
pub params: Array<Var>,
pub ret_type: Type,
pub body: SeqStmt,
/* private fields */
}Expand description
The object behind Function.
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
const TYPE_DEPTH: i32
Depth of this type in the object inheritance tree. Read more
Source§type Parent = BaseFuncObj
type Parent = BaseFuncObj
Source§fn type_index() -> i32
fn type_index() -> i32
The runtime type index of this type.
Source§unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
The object header, mutably. Read more
impl ImmutableObject for FunctionObj
Auto Trait Implementations§
impl !Freeze for FunctionObj
impl RefUnwindSafe for FunctionObj
impl !Send for FunctionObj
impl !Sync for FunctionObj
impl Unpin for FunctionObj
impl UnsafeUnpin 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