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 StructuralPartialEq for Using
Auto Trait Implementations§
impl Freeze for Using
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more