pub struct BuiltinFunction {
pub name: &'static str,
pub object_type: &'static str,
pub return_type: &'static str,
pub mutates_state: bool,
}
Expand description
Represents a Solidity built-in function or property.
Fields§
§name: &'static str
§object_type: &'static str
The type of the object this built-in applies to (e.g., “address”, “bytes”, “array”). Use “any_array” for array types like uint[], bytes[], etc.
return_type: &'static str
A string representation of the return type (e.g., “uint256”, “bool”, “(bool,bytes)”, “void”).
mutates_state: bool
Indicates if calling this built-in modifies the state of the object it’s called on.
Trait Implementations§
Source§impl Clone for BuiltinFunction
impl Clone for BuiltinFunction
Source§fn clone(&self) -> BuiltinFunction
fn clone(&self) -> BuiltinFunction
Returns a duplicate 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 moreSource§impl Debug for BuiltinFunction
impl Debug for BuiltinFunction
Source§impl PartialEq for BuiltinFunction
impl PartialEq for BuiltinFunction
impl Eq for BuiltinFunction
impl StructuralPartialEq for BuiltinFunction
Auto Trait Implementations§
impl Freeze for BuiltinFunction
impl RefUnwindSafe for BuiltinFunction
impl Send for BuiltinFunction
impl Sync for BuiltinFunction
impl Unpin for BuiltinFunction
impl UnwindSafe for BuiltinFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.