Enum quoted_string::spec::QuotingClass [−][src]
pub enum QuotingClass { QText, NeedsQuoting, Invalid, }
Represents if a char can be contained in a quoted string and if it needs escapeing
Variants
QText
The char can be represented in a quoted string
NeedsQuoting
The char can be represented but needs quoting (e.g. the " in r#"bla\"blo"#
)
Invalid
The char is invalid (e.g. a CTL char)
Trait Implementations
impl Debug for QuotingClass
[src]
impl Debug for QuotingClass
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for QuotingClass
[src]
impl Eq for QuotingClass
impl PartialEq for QuotingClass
[src]
impl PartialEq for QuotingClass
fn eq(&self, other: &QuotingClass) -> bool
[src]
fn eq(&self, other: &QuotingClass) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Hash for QuotingClass
[src]
impl Hash for QuotingClass
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for QuotingClass
[src]
impl Clone for QuotingClass
fn clone(&self) -> QuotingClass
[src]
fn clone(&self) -> QuotingClass
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for QuotingClass
impl Send for QuotingClass
impl Sync for QuotingClass
impl Sync for QuotingClass