Struct syn_solidity::UsingDirective
source · 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: SemiTrait 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 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