Struct solang_parser::pt::UsingFunction
source · pub struct UsingFunction {
pub loc: Loc,
pub path: IdentifierPath,
pub oper: Option<UserDefinedOperator>,
}
Expand description
A using
function. See UsingList.
<path> [ as <oper> ]
Fields§
§loc: Loc
The code location.
path: IdentifierPath
The identifier path.
oper: Option<UserDefinedOperator>
The optional user-defined operator.
Trait Implementations§
source§impl Clone for UsingFunction
impl Clone for UsingFunction
source§fn clone(&self) -> UsingFunction
fn clone(&self) -> UsingFunction
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 CodeLocation for UsingFunction
impl CodeLocation for UsingFunction
source§impl Debug for UsingFunction
impl Debug for UsingFunction
source§impl Display for UsingFunction
impl Display for UsingFunction
source§impl OptionalCodeLocation for UsingFunction
impl OptionalCodeLocation for UsingFunction
source§impl PartialEq for UsingFunction
impl PartialEq for UsingFunction
source§fn eq(&self, other: &UsingFunction) -> bool
fn eq(&self, other: &UsingFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UsingFunction
impl StructuralPartialEq for UsingFunction
Auto Trait Implementations§
impl Freeze for UsingFunction
impl RefUnwindSafe for UsingFunction
impl Send for UsingFunction
impl Sync for UsingFunction
impl Unpin for UsingFunction
impl UnwindSafe for UsingFunction
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