Struct nandoize::mapping_context::ArgumentPair
source · pub(crate) struct ArgumentPair {
pub is_mutable: bool,
pub function_argument: TokenStream,
pub nando_parameter: TokenStream,
pub holds_references: bool,
pub type_str: String,
}Expand description
Pair of nanotransaction parameter and corresponding wrapped function argument.
Fields§
§is_mutable: boolMutability of original function parameter.
function_argument: TokenStreamExpression to be used as an argument to the wrapped function.
nando_parameter: TokenStreamExpression to be used as the parameter in the nanotransaction signature that will eventually be resolved into the corresponding wrapped function argument.
holds_references: bool§type_str: StringTrait Implementations§
source§impl Clone for ArgumentPair
impl Clone for ArgumentPair
source§fn clone(&self) -> ArgumentPair
fn clone(&self) -> ArgumentPair
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 moresource§impl Debug for ArgumentPair
impl Debug for ArgumentPair
Auto Trait Implementations§
impl RefUnwindSafe for ArgumentPair
impl !Send for ArgumentPair
impl !Sync for ArgumentPair
impl Unpin for ArgumentPair
impl UnwindSafe for ArgumentPair
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