Enum cql3_parser::common::IdentifierRef
source · pub enum IdentifierRef<'a> {
Quoted(&'a str),
Unquoted(&'a str),
}Expand description
An alternative to Identifier that holds &str instead of String. Allows for allocationless comparison of Identifier.
Variants§
Quoted(&'a str)
This variant is case sensitive “fOo”“bAr”“” is stored as fOo“bAr“
Unquoted(&'a str)
This variant is case insensitive Only ascii alphanumeric and _ characters are allowed in this variant fOo_bAr is stored as fOo_bAr
Trait Implementations§
source§impl<'a> Debug for IdentifierRef<'a>
impl<'a> Debug for IdentifierRef<'a>
source§impl PartialEq<Identifier> for IdentifierRef<'_>
impl PartialEq<Identifier> for IdentifierRef<'_>
source§fn eq(&self, other: &Identifier) -> bool
fn eq(&self, other: &Identifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<IdentifierRef<'_>> for Identifier
impl PartialEq<IdentifierRef<'_>> for Identifier
source§fn eq(&self, other: &IdentifierRef<'_>) -> bool
fn eq(&self, other: &IdentifierRef<'_>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.