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

the content can be/is utf-8

the content can be/is only ascii

Methods

impl QuotedStringType
[src]

[src]

creates a QuotedString type from a bool

  • if is_ascii == true then AsciiOnly is returned
  • if is_ascii == false then Utf8 is returned

Trait Implementations

impl Debug for QuotedStringType
[src]

[src]

Formats the value using the given formatter.

impl Copy for QuotedStringType
[src]

impl Clone for QuotedStringType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for QuotedStringType
[src]

impl PartialEq for QuotedStringType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Hash for QuotedStringType
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more