Enum quoted_string::QuotedStringType
[−]
[src]
pub enum QuotedStringType { Utf8, AsciiOnly, }
Indicates what kind of quoted-strings are used
As parameter this normally means if Utf8 is allowed or only Ascii.
In return position it is sometimes used to indicate whether or not a validated string contains non-us-ascci utf8 characters.
Variants
Utf8
the content can be/is utf-8
AsciiOnly
the content can be/is only ascii
Methods
impl QuotedStringType
[src]
fn from_is_ascii(is_ascii: bool) -> Self
[src]
creates a QuotedString type from a bool
- if
is_ascii == true
thenAsciiOnly
is returned - if
is_ascii == false
thenUtf8
is returned
Trait Implementations
impl Debug for QuotedStringType
[src]
impl Copy for QuotedStringType
[src]
impl Clone for QuotedStringType
[src]
fn clone(&self) -> QuotedStringType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for QuotedStringType
[src]
impl PartialEq for QuotedStringType
[src]
fn eq(&self, __arg_0: &QuotedStringType) -> bool
[src]
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]
This method tests for !=
.