pub struct UsingDirective {
pub using_token: using,
pub list: UsingList,
pub for_token: For,
pub ty: UsingType,
pub global_token: Option<global>,
pub semi_token: Semi,
}
Expand description
A using
directive: using { A, B.mul as * } for uint256 global;
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.usingDirective
Fields§
§using_token: using
§list: UsingList
§for_token: For
§ty: UsingType
§global_token: Option<global>
§semi_token: Semi
Trait Implementations§
Source§impl Clone for UsingDirective
impl Clone for UsingDirective
Source§fn clone(&self) -> UsingDirective
fn clone(&self) -> UsingDirective
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 UsingDirective
impl Debug for UsingDirective
Source§impl Display for UsingDirective
impl Display for UsingDirective
Source§impl Parse for UsingDirective
impl Parse for UsingDirective
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Spanned for UsingDirective
impl Spanned for UsingDirective
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.Auto Trait Implementations§
impl Freeze for UsingDirective
impl RefUnwindSafe for UsingDirective
impl !Send for UsingDirective
impl !Sync for UsingDirective
impl Unpin for UsingDirective
impl UnwindSafe for UsingDirective
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