pub enum BracketCharClass {
Alphanumeric,
Control,
Lower,
Space,
Alphabet,
Digit,
Print,
Upper,
Blank,
Graphic,
Punctuation,
HexDigit,
}
Expand description
Variants§
Alphanumeric
[:alnum:]
Control
[:cntrl:]
Lower
[:lower:]
Space
[:space:]
Alphabet
[:alpha:]
Digit
[:digit:]
[:print:]
Upper
[:upper:]
Blank
[:blank:]
Graphic
[:graph:]
Punctuation
[:punct:]
HexDigit
[:xdigit:]
Implementations§
Source§impl BracketCharClass
impl BracketCharClass
pub const fn to_ranges(&self) -> &'static [RangeInclusive<char>]
Sourcepub const fn check_ascii(&self, c: char) -> bool
pub const fn check_ascii(&self, c: char) -> bool
Checks matches to the char classes.
Trait Implementations§
Source§impl Clone for BracketCharClass
impl Clone for BracketCharClass
Source§fn clone(&self) -> BracketCharClass
fn clone(&self) -> BracketCharClass
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 BracketCharClass
impl Debug for BracketCharClass
Source§impl Display for BracketCharClass
impl Display for BracketCharClass
Source§impl From<BracketCharClass> for BracketExpressionTerm
impl From<BracketCharClass> for BracketExpressionTerm
Source§fn from(value: BracketCharClass) -> Self
fn from(value: BracketCharClass) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BracketCharClass
impl PartialEq for BracketCharClass
Source§impl ToTokens for BracketCharClass
impl ToTokens for BracketCharClass
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Copy for BracketCharClass
impl Eq for BracketCharClass
impl StructuralPartialEq for BracketCharClass
Auto Trait Implementations§
impl Freeze for BracketCharClass
impl RefUnwindSafe for BracketCharClass
impl Send for BracketCharClass
impl Sync for BracketCharClass
impl Unpin for BracketCharClass
impl UnwindSafe for BracketCharClass
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> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.