Enum wagon_parser::parser::chunk::ChunkP
source · 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§
source§impl PartialEq for ChunkP
impl PartialEq for ChunkP
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.