pub struct MoveFunction {
pub name: String,
pub visibility: MoveFunctionVisibility,
pub is_entry: bool,
pub is_view: bool,
pub generic_type_params: Vec<MoveFunctionGenericTypeParam>,
pub params: Vec<String>,
pub return: Vec<String>,
}Expand description
MoveFunction : Move function
Fields§
§name: String§visibility: MoveFunctionVisibility§is_entry: boolWhether the function can be called as an entry function directly in a transaction
is_view: boolWhether the function is a view function or not
generic_type_params: Vec<MoveFunctionGenericTypeParam>Generic type params associated with the Move function
params: Vec<String>Parameters associated with the move function
return: Vec<String>Return type of the function
Implementations§
Source§impl MoveFunction
impl MoveFunction
Sourcepub fn new(
name: String,
visibility: MoveFunctionVisibility,
is_entry: bool,
is_view: bool,
generic_type_params: Vec<MoveFunctionGenericTypeParam>,
params: Vec<String>,
return: Vec<String>,
) -> MoveFunction
pub fn new( name: String, visibility: MoveFunctionVisibility, is_entry: bool, is_view: bool, generic_type_params: Vec<MoveFunctionGenericTypeParam>, params: Vec<String>, return: Vec<String>, ) -> MoveFunction
Move function
Trait Implementations§
Source§impl Clone for MoveFunction
impl Clone for MoveFunction
Source§fn clone(&self) -> MoveFunction
fn clone(&self) -> MoveFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MoveFunction
impl Debug for MoveFunction
Source§impl Default for MoveFunction
impl Default for MoveFunction
Source§fn default() -> MoveFunction
fn default() -> MoveFunction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MoveFunction
impl<'de> Deserialize<'de> for MoveFunction
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
Source§impl PartialEq for MoveFunction
impl PartialEq for MoveFunction
Source§fn eq(&self, other: &MoveFunction) -> bool
fn eq(&self, other: &MoveFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MoveFunction
impl Serialize for MoveFunction
impl StructuralPartialEq for MoveFunction
Auto Trait Implementations§
impl Freeze for MoveFunction
impl RefUnwindSafe for MoveFunction
impl Send for MoveFunction
impl Sync for MoveFunction
impl Unpin for MoveFunction
impl UnsafeUnpin for MoveFunction
impl UnwindSafe for MoveFunction
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