Enum solang_parser::pt::UsingList
source · pub enum UsingList {
Library(IdentifierPath),
Functions(Vec<UsingFunction>),
Error,
}
Expand description
A using
list. See Using.
Variants§
Library(IdentifierPath)
A single identifier path.
Functions(Vec<UsingFunction>)
List of using functions.
{ <<identifier path> [ as <operator> ]>,* }
Error
An error occurred during parsing.
Trait Implementations§
source§impl OptionalCodeLocation for UsingList
impl OptionalCodeLocation for UsingList
source§impl PartialEq for UsingList
impl PartialEq for UsingList
impl Eq for UsingList
impl StructuralPartialEq for UsingList
Auto Trait Implementations§
impl Freeze for UsingList
impl RefUnwindSafe for UsingList
impl Send for UsingList
impl Sync for UsingList
impl Unpin for UsingList
impl UnwindSafe for UsingList
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