pub struct ItemStruct {
pub attrs: Vec<Attribute>,
pub struct_token: Struct,
pub name: SolIdent,
pub brace_token: Brace,
pub fields: FieldList,
}
Expand description
A struct definition: struct Foo { uint256 bar; }
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.structDefinition
Fields§
§attrs: Vec<Attribute>
§struct_token: Struct
§name: SolIdent
§brace_token: Brace
§fields: FieldList
Implementations§
Trait Implementations§
Source§impl Clone for ItemStruct
impl Clone for ItemStruct
Source§fn clone(&self) -> ItemStruct
fn clone(&self) -> ItemStruct
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 ItemStruct
impl Debug for ItemStruct
Source§impl Display for ItemStruct
impl Display for ItemStruct
Source§impl Hash for ItemStruct
impl Hash for ItemStruct
Source§impl Parse for ItemStruct
impl Parse for ItemStruct
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for ItemStruct
impl PartialEq for ItemStruct
Source§impl Spanned for ItemStruct
impl Spanned for ItemStruct
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 ItemStruct
Auto Trait Implementations§
impl Freeze for ItemStruct
impl RefUnwindSafe for ItemStruct
impl !Send for ItemStruct
impl !Sync for ItemStruct
impl Unpin for ItemStruct
impl UnwindSafe for ItemStruct
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
)