pub struct ItemError {
pub attrs: Vec<Attribute>,
pub error_token: error,
pub name: SolIdent,
pub paren_token: Paren,
pub parameters: ParameterList,
pub semi_token: Semi,
}
Expand description
An error definition: error Foo(uint256 a, uint256 b);
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.errorDefinition
Fields§
§attrs: Vec<Attribute>
§error_token: error
§name: SolIdent
§paren_token: Paren
§parameters: ParameterList
§semi_token: Semi
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemError
impl RefUnwindSafe for ItemError
impl !Send for ItemError
impl !Sync for ItemError
impl Unpin for ItemError
impl UnwindSafe for ItemError
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 84 bytes