Struct parol::analysis::compiled_terminal::CompiledTerminal
source · pub struct CompiledTerminal(pub TerminalIndex);Expand description
Internal data structure to represent a compiled terminal, a TerminalIndex.
Tuple Fields§
§0: TerminalIndexImplementations§
source§impl CompiledTerminal
impl CompiledTerminal
sourcepub fn create<F, R>(s: &Symbol, terminal_index_resolver: R) -> Selfwhere
R: AsRef<F>,
F: Fn(&str, TerminalKind) -> TerminalIndex,
pub fn create<F, R>(s: &Symbol, terminal_index_resolver: R) -> Selfwhere R: AsRef<F>, F: Fn(&str, TerminalKind) -> TerminalIndex,
Creates a new item from a Symbol
Trait Implementations§
source§impl Clone for CompiledTerminal
impl Clone for CompiledTerminal
source§fn clone(&self) -> CompiledTerminal
fn clone(&self) -> CompiledTerminal
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 CompiledTerminal
impl Debug for CompiledTerminal
source§impl Default for CompiledTerminal
impl Default for CompiledTerminal
source§impl Display for CompiledTerminal
impl Display for CompiledTerminal
source§impl Hash for CompiledTerminal
impl Hash for CompiledTerminal
source§impl Ord for CompiledTerminal
impl Ord for CompiledTerminal
source§fn cmp(&self, other: &CompiledTerminal) -> Ordering
fn cmp(&self, other: &CompiledTerminal) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CompiledTerminal
impl PartialEq for CompiledTerminal
source§fn eq(&self, other: &CompiledTerminal) -> bool
fn eq(&self, other: &CompiledTerminal) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for CompiledTerminal
impl PartialOrd for CompiledTerminal
source§fn partial_cmp(&self, other: &CompiledTerminal) -> Option<Ordering>
fn partial_cmp(&self, other: &CompiledTerminal) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TerminalMappings<CompiledTerminal> for CompiledTerminal
impl TerminalMappings<CompiledTerminal> for CompiledTerminal
source§fn eps() -> CompiledTerminal
fn eps() -> CompiledTerminal
Create an epsilon representation
source§fn end() -> CompiledTerminal
fn end() -> CompiledTerminal
Create an end-of-input representation
impl Copy for CompiledTerminal
impl Eq for CompiledTerminal
impl StructuralEq for CompiledTerminal
impl StructuralPartialEq for CompiledTerminal
Auto Trait Implementations§
impl RefUnwindSafe for CompiledTerminal
impl Send for CompiledTerminal
impl Sync for CompiledTerminal
impl Unpin for CompiledTerminal
impl UnwindSafe for CompiledTerminal
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.