pub enum EmptyAtomSet {
_None,
}Expand description
This enum represents an empty AtomSet. It can be used to Lex code when you’re not interested in capturing known keywords.
Variants§
_None
Implementations§
Source§impl EmptyAtomSet
impl EmptyAtomSet
pub const ATOMS: EmptyAtomSet = EmptyAtomSet::_None
Trait Implementations§
Source§impl AtomSet for EmptyAtomSet
impl AtomSet for EmptyAtomSet
Source§fn from_str(s: &str) -> EmptyAtomSet
fn from_str(s: &str) -> EmptyAtomSet
Converts a string keyword to the corresponding atom variant. Read more
Source§fn to_str(self) -> &'static str
fn to_str(self) -> &'static str
Converts this atom back to its string representation. Read more
Source§fn len(&self) -> u32
fn len(&self) -> u32
Returns the length in characters of this atom’s string representation. Read more
Source§impl Clone for EmptyAtomSet
impl Clone for EmptyAtomSet
Source§fn clone(&self) -> EmptyAtomSet
fn clone(&self) -> EmptyAtomSet
Returns a duplicate 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 EmptyAtomSet
impl Debug for EmptyAtomSet
Source§impl Default for EmptyAtomSet
impl Default for EmptyAtomSet
Source§fn default() -> EmptyAtomSet
fn default() -> EmptyAtomSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for EmptyAtomSet
impl PartialEq for EmptyAtomSet
impl Copy for EmptyAtomSet
impl StructuralPartialEq for EmptyAtomSet
Auto Trait Implementations§
impl Freeze for EmptyAtomSet
impl RefUnwindSafe for EmptyAtomSet
impl Send for EmptyAtomSet
impl Sync for EmptyAtomSet
impl Unpin for EmptyAtomSet
impl UnwindSafe for EmptyAtomSet
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<T> DynAtomSet for T
impl<T> DynAtomSet for T
Source§fn str_to_bits(&self, keyword: &str) -> u32
fn str_to_bits(&self, keyword: &str) -> u32
Converts a string keyword to the corresponding atom variant, returning its bit representation.
Source§fn bits_to_str(&self, bits: u32) -> &'static str
fn bits_to_str(&self, bits: u32) -> &'static str
Converts this atom’s bit representation back to its string representation.