[−]Struct solana_libra_ir_to_bytecode::parser::ast::Function
A Move function/procedure
Fields
visibility: FunctionVisibility
The visibility (public or internal)
signature: FunctionSignature
The type signature
annotations: Vec<FunctionAnnotation>
Annotations on the function
body: FunctionBody
The code for the procedure
Methods
impl Function
pub fn new(
visibility: FunctionVisibility,
formals: Vec<(Var, Type)>,
return_type: Vec<Type>,
annotations: Vec<FunctionAnnotation>,
body: FunctionBody
) -> Function
visibility: FunctionVisibility,
formals: Vec<(Var, Type)>,
return_type: Vec<Type>,
annotations: Vec<FunctionAnnotation>,
body: FunctionBody
) -> Function
Creates a new function declaration from the components of the function
See the declaration of the struct Function
for more details
Trait Implementations
impl PartialEq<Function> for Function
impl Display for Function
impl Debug for Function
impl Clone for Function
Auto Trait Implementations
impl Sync for Function
impl Send for Function
impl Unpin for Function
impl RefUnwindSafe for Function
impl UnwindSafe for Function
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Erased for T
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,