Struct syn_solidity::ItemUdt
source · pub struct ItemUdt {
pub attrs: Vec<Attribute>,
pub type_token: Type,
pub name: SolIdent,
pub is_token: is,
pub ty: Type,
pub semi_token: Semi,
}
Expand description
A user-defined value type definition: type Foo is uint256;
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.userDefinedValueTypeDefinition
Fields§
§attrs: Vec<Attribute>
§type_token: Type
§name: SolIdent
§is_token: is
§ty: Type
§semi_token: Semi
Trait Implementations§
source§impl PartialEq for ItemUdt
impl PartialEq for ItemUdt
source§impl Spanned for ItemUdt
impl Spanned for ItemUdt
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 ItemUdt
Auto Trait Implementations§
impl RefUnwindSafe for ItemUdt
impl !Send for ItemUdt
impl !Sync for ItemUdt
impl Unpin for ItemUdt
impl UnwindSafe for ItemUdt
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