Struct syn_solidity::TypeMapping 
source · pub struct TypeMapping {
    pub mapping_token: mapping,
    pub paren_token: Paren,
    pub key: Box<Type>,
    pub key_name: Option<SolIdent>,
    pub fat_arrow_token: FatArrow,
    pub value: Box<Type>,
    pub value_name: Option<SolIdent>,
}Expand description
A mapping type: mapping(uint key => string value)
Fields§
§mapping_token: mapping§paren_token: Paren§key: Box<Type>§key_name: Option<SolIdent>§fat_arrow_token: FatArrow§value: Box<Type>§value_name: Option<SolIdent>Implementations§
source§impl TypeMapping
 
impl TypeMapping
sourcepub fn key_var(&self) -> VariableDeclaration
 
pub fn key_var(&self) -> VariableDeclaration
Returns a VariableDeclaration corresponding to this mapping’s key.
sourcepub fn value_var(&self) -> VariableDeclaration
 
pub fn value_var(&self) -> VariableDeclaration
Returns a VariableDeclaration corresponding to this mapping’s value.
Trait Implementations§
source§impl Clone for TypeMapping
 
impl Clone for TypeMapping
source§fn clone(&self) -> TypeMapping
 
fn clone(&self) -> TypeMapping
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 TypeMapping
 
impl Debug for TypeMapping
source§impl Display for TypeMapping
 
impl Display for TypeMapping
source§impl Hash for TypeMapping
 
impl Hash for TypeMapping
source§impl Parse for TypeMapping
 
impl Parse for TypeMapping
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq for TypeMapping
 
impl PartialEq for TypeMapping
source§impl Spanned for TypeMapping
 
impl Spanned for TypeMapping
source§fn span(&self) -> Span
 
fn span(&self) -> Span
Returns a 
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.impl Eq for TypeMapping
Auto Trait Implementations§
impl Freeze for TypeMapping
impl RefUnwindSafe for TypeMapping
impl !Send for TypeMapping
impl !Sync for TypeMapping
impl Unpin for TypeMapping
impl UnwindSafe for TypeMapping
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)