pub enum ChunkP {
Unit(SpannableNode<Symbol>),
Group(Vec<SpannableNode<Chunk>>),
}
Variants§
Unit(SpannableNode<Symbol>)
Just a Symbol
.
Group(Vec<SpannableNode<Chunk>>)
A group of Chunk
s. Enclosed with ()
.
Implementations§
Source§impl ChunkP
impl ChunkP
Sourcepub fn new_unspanned_unit(arg_0: Symbol) -> Self
pub fn new_unspanned_unit(arg_0: Symbol) -> Self
Construct a Self::Unit
with dummy span information.
Sourcepub fn new_unspanned_group(arg_0: Vec<Chunk>) -> Self
pub fn new_unspanned_group(arg_0: Vec<Chunk>) -> Self
Construct a Self::Group
with dummy span information.
Trait Implementations§
impl Eq for ChunkP
impl StructuralPartialEq for ChunkP
Auto Trait Implementations§
impl Freeze for ChunkP
impl RefUnwindSafe for ChunkP
impl Send for ChunkP
impl Sync for ChunkP
impl Unpin for ChunkP
impl UnwindSafe for ChunkP
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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