Struct solang_parser::pt::Using
source · pub struct Using {
pub loc: Loc,
pub list: UsingList,
pub ty: Option<Expression>,
pub global: Option<Identifier>,
}
Expand description
A using
directive.
Can occur within contracts and libraries and at the file level.
using <list> for <type | '*'> [global];
Fields§
§loc: Loc
The code location.
list: UsingList
The list of using
functions or a single identifier path.
ty: Option<Expression>
The type.
This field is None
if an error occurred or the specified type is *
.
global: Option<Identifier>
The optional global
identifier.
Trait Implementations§
source§impl OptionalCodeLocation for Using
impl OptionalCodeLocation for Using
source§impl PartialEq for Using
impl PartialEq for Using
impl Eq for Using
impl StructuralEq for Using
impl StructuralPartialEq for Using
Auto Trait Implementations§
impl RefUnwindSafe for Using
impl Send for Using
impl Sync for Using
impl Unpin for Using
impl UnwindSafe for Using
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