pub struct SolidityParam {
pub ty: SolidityType,
pub location: Option<String>,
pub name: String,
}Expand description
A function parameter or return value.
Fields§
§ty: SolidityTypeParameter type.
location: Option<String>Optional data location (memory, calldata, storage).
name: StringParameter name (may be empty for returns).
Implementations§
Source§impl SolidityParam
impl SolidityParam
pub fn new(ty: SolidityType, name: impl Into<String>) -> Self
pub fn calldata(ty: SolidityType, name: impl Into<String>) -> Self
pub fn storage(ty: SolidityType, name: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for SolidityParam
impl Clone for SolidityParam
Source§fn clone(&self) -> SolidityParam
fn clone(&self) -> SolidityParam
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 SolidityParam
impl Debug for SolidityParam
Auto Trait Implementations§
impl Freeze for SolidityParam
impl RefUnwindSafe for SolidityParam
impl Send for SolidityParam
impl Sync for SolidityParam
impl Unpin for SolidityParam
impl UnsafeUnpin for SolidityParam
impl UnwindSafe for SolidityParam
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