pub struct Function {
pub name: String,
pub is_final: bool,
pub const_parameters: Vec<ConstParameter>,
pub inputs: Vec<Input>,
pub outputs: Vec<Output>,
}Expand description
A public entry point (fn inside program {}). Compiled to an Aleo transition.
Fields§
§name: String§is_final: boolWhether this function has a finalize block. Compiled to an Aleo finalize scope.
const_parameters: Vec<ConstParameter>Const generic parameters. Always empty for program ABIs (post-monomorphization); may be populated for interface function prototypes.
inputs: Vec<Input>§outputs: Vec<Output>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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