Struct stacks_rpc_client::clarity::vm::callables::DefinedFunction
pub struct DefinedFunction {
pub define_type: DefineType,
/* private fields */
}
Fields§
§define_type: DefineType
Implementations§
§impl DefinedFunction
impl DefinedFunction
pub fn new( arguments: Vec<(ClarityName, TypeSignature)>, body: SymbolicExpression, define_type: DefineType, name: &ClarityName, context_name: &str ) -> DefinedFunction
pub fn execute_apply( &self, args: &[Value], env: &mut Environment<'_, '_, '_> ) -> Result<Value, Error>
pub fn check_trait_expectations( &self, epoch: &StacksEpochId, contract_defining_trait: &ContractContext, trait_identifier: &TraitIdentifier ) -> Result<(), Error>
pub fn is_read_only(&self) -> bool
pub fn apply( &self, args: &[Value], env: &mut Environment<'_, '_, '_> ) -> Result<Value, Error>
pub fn is_public(&self) -> bool
pub fn get_identifier(&self) -> FunctionIdentifier
pub fn get_arguments(&self) -> &Vec<ClarityName>
pub fn get_arg_types(&self) -> &Vec<TypeSignature>
pub fn canonicalize_types(&mut self, epoch: &StacksEpochId)
pub fn get_span(&self) -> Span
Trait Implementations§
§impl Clone for DefinedFunction
impl Clone for DefinedFunction
§fn clone(&self) -> DefinedFunction
fn clone(&self) -> DefinedFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for DefinedFunction
impl Debug for DefinedFunction
§impl<'de> Deserialize<'de> for DefinedFunction
impl<'de> Deserialize<'de> for DefinedFunction
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DefinedFunction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<DefinedFunction, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for DefinedFunction
impl Serialize for DefinedFunction
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DefinedFunction
impl Send for DefinedFunction
impl Sync for DefinedFunction
impl Unpin for DefinedFunction
impl UnwindSafe for DefinedFunction
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