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,
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
)