pub struct Inheritance {
pub is_token: is,
pub inheritance: Punctuated<Modifier, Comma>,
}
Expand description
A list of inheritance specifiers of an ItemContract
:
is ERC20("Token", "TKN"), Ownable
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.inheritanceSpecifier
Fields§
§is_token: is
§inheritance: Punctuated<Modifier, Comma>
Trait Implementations§
Source§impl Clone for Inheritance
impl Clone for Inheritance
Source§fn clone(&self) -> Inheritance
fn clone(&self) -> Inheritance
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 Inheritance
impl Debug for Inheritance
Source§impl Display for Inheritance
impl Display for Inheritance
Source§impl Hash for Inheritance
impl Hash for Inheritance
Source§impl Parse for Inheritance
impl Parse for Inheritance
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for Inheritance
impl PartialEq for Inheritance
Source§impl Spanned for Inheritance
impl Spanned for Inheritance
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 Inheritance
impl StructuralPartialEq for Inheritance
Auto Trait Implementations§
impl Freeze for Inheritance
impl RefUnwindSafe for Inheritance
impl !Send for Inheritance
impl !Sync for Inheritance
impl Unpin for Inheritance
impl UnwindSafe for Inheritance
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
)