pub struct FunctionParameter { /* private fields */ }Expand description
One ordered function parameter.
Implementations§
Source§impl FunctionParameter
impl FunctionParameter
Sourcepub const fn new(name: Label, type_ref: TypeReference) -> Self
pub const fn new(name: Label, type_ref: TypeReference) -> Self
Construct a parameter from validated contract values.
Sourcepub const fn name(&self) -> &Label
pub const fn name(&self) -> &Label
Return the parameter name without a provider variable sigil.
Sourcepub const fn type_ref(&self) -> &TypeReference
pub const fn type_ref(&self) -> &TypeReference
Return the parameter type reference.
Trait Implementations§
Source§impl Clone for FunctionParameter
impl Clone for FunctionParameter
Source§fn clone(&self) -> FunctionParameter
fn clone(&self) -> FunctionParameter
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 FunctionParameter
impl Debug for FunctionParameter
impl Eq for FunctionParameter
Source§impl Ord for FunctionParameter
impl Ord for FunctionParameter
Source§fn cmp(&self, other: &FunctionParameter) -> Ordering
fn cmp(&self, other: &FunctionParameter) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FunctionParameter
impl PartialEq for FunctionParameter
Source§impl PartialOrd for FunctionParameter
impl PartialOrd for FunctionParameter
Source§impl Serialize for FunctionParameter
impl Serialize for FunctionParameter
impl StructuralPartialEq for FunctionParameter
Auto Trait Implementations§
impl Freeze for FunctionParameter
impl RefUnwindSafe for FunctionParameter
impl Send for FunctionParameter
impl Sync for FunctionParameter
impl Unpin for FunctionParameter
impl UnsafeUnpin for FunctionParameter
impl UnwindSafe for FunctionParameter
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