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: TerminalIndex
Implementations§
source§impl CompiledTerminal
impl CompiledTerminal
sourcepub fn create<F, R>(s: &Symbol, terminal_index_resolver: R) -> Selfwhere
R: AsRef<F>,
F: TerminalIndexFn,
pub fn create<F, R>(s: &Symbol, terminal_index_resolver: R) -> Selfwhere
R: AsRef<F>,
F: TerminalIndexFn,
Creates a new item from a Symbol
Trait Implementations§
source§impl AsRef<u16> for CompiledTerminal
impl AsRef<u16> for CompiledTerminal
source§fn as_ref(&self) -> &TerminalIndex
fn as_ref(&self) -> &TerminalIndex
Converts this type into a shared reference of the (usually inferred) input type.
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§fn default() -> CompiledTerminal
fn default() -> CompiledTerminal
Returns the “default value” for a type. Read more
source§impl Display for CompiledTerminal
impl Display for CompiledTerminal
source§impl Extend<CompiledTerminal> for KTuple
impl Extend<CompiledTerminal> for KTuple
source§fn extend<I: IntoIterator<Item = CompiledTerminal>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = CompiledTerminal>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<CompiledTerminal> for Terminals
impl Extend<CompiledTerminal> for Terminals
source§fn extend<I: IntoIterator<Item = CompiledTerminal>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = CompiledTerminal>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl From<u16> for CompiledTerminal
impl From<u16> for CompiledTerminal
source§fn from(t: TerminalIndex) -> Self
fn from(t: TerminalIndex) -> Self
Converts to this type from the input type.
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§impl PartialOrd for CompiledTerminal
impl PartialOrd for CompiledTerminal
source§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 StructuralPartialEq for CompiledTerminal
Auto Trait Implementations§
impl Freeze for CompiledTerminal
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.