pub struct FunctionBuilder { /* private fields */ }Expand description
Method ABI declaration builder.
Implementations§
Source§impl FunctionBuilder
impl FunctionBuilder
Sourcepub fn new<T: Into<String>>(abi_version: AbiVersion, name: T) -> Self
pub fn new<T: Into<String>>(abi_version: AbiVersion, name: T) -> Self
Creates an empty ABI declaration for a method with the specified ABI version and name.
Sourcepub fn with_headers<I: IntoIterator<Item = AbiHeaderType>>(
self,
headers: I,
) -> Self
pub fn with_headers<I: IntoIterator<Item = AbiHeaderType>>( self, headers: I, ) -> Self
Sets method headers to the specified list.
Sourcepub fn with_inputs<I, T>(self, inputs: I) -> Self
pub fn with_inputs<I, T>(self, inputs: I) -> Self
Sets method input types to the specified list of named arguments.
Sourcepub fn with_unnamed_inputs<I: IntoIterator<Item = AbiType>>(
self,
inputs: I,
) -> Self
pub fn with_unnamed_inputs<I: IntoIterator<Item = AbiType>>( self, inputs: I, ) -> Self
Sets method input types to the specified list of unnamed arguments.
Sourcepub fn with_outputs<I, T>(self, outputs: I) -> Self
pub fn with_outputs<I, T>(self, outputs: I) -> Self
Sets method output types to the specified list of named arguments.
Sourcepub fn with_unnamed_outputs<I: IntoIterator<Item = AbiType>>(
self,
outputs: I,
) -> Self
pub fn with_unnamed_outputs<I: IntoIterator<Item = AbiType>>( self, outputs: I, ) -> Self
Sets method output types to the specified list of unnamed arguments.
Trait Implementations§
Source§impl Clone for FunctionBuilder
impl Clone for FunctionBuilder
Source§fn clone(&self) -> FunctionBuilder
fn clone(&self) -> FunctionBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunctionBuilder
impl RefUnwindSafe for FunctionBuilder
impl Send for FunctionBuilder
impl Sync for FunctionBuilder
impl Unpin for FunctionBuilder
impl UnwindSafe for FunctionBuilder
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