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 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 Freeze for ItemUdt
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
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
)