Struct solang_parser::pt::SourceUnit
source · pub struct SourceUnit(pub Vec<SourceUnitPart>);
Expand description
The source unit of the parse tree.
Contains all of the parse tree’s parts in a vector.
Tuple Fields§
§0: Vec<SourceUnitPart>
Trait Implementations§
source§impl Clone for SourceUnit
impl Clone for SourceUnit
source§fn clone(&self) -> SourceUnit
fn clone(&self) -> SourceUnit
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 SourceUnit
impl Debug for SourceUnit
source§impl Display for SourceUnit
impl Display for SourceUnit
source§impl OptionalCodeLocation for SourceUnit
impl OptionalCodeLocation for SourceUnit
source§impl PartialEq for SourceUnit
impl PartialEq for SourceUnit
source§fn eq(&self, other: &SourceUnit) -> bool
fn eq(&self, other: &SourceUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SourceUnit
impl StructuralPartialEq for SourceUnit
Auto Trait Implementations§
impl Freeze for SourceUnit
impl RefUnwindSafe for SourceUnit
impl Send for SourceUnit
impl Sync for SourceUnit
impl Unpin for SourceUnit
impl UnwindSafe for SourceUnit
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