Enum content_inspector::ContentType[][src]

pub enum ContentType {
    BINARY,
    UTF_8,
    UTF_8_BOM,
    UTF_16LE,
    UTF_16BE,
    UTF_32LE,
    UTF_32BE,
}

The type of encoding that was detected (for "text" data) or BINARY for "binary" data.

Variants

"binary" data

UTF-8 encoded "text" data

UTF-8 encoded "text" data with a byte order mark.

UTF-16 encoded "text" data (little endian)

UTF-16 encoded "text" data (big endian)

UTF-32 encoded "text" data (little endian)

UTF-32 encoded "text" data (big endian)

Methods

impl ContentType
[src]

Returns true, if the ContentType is BINARY.

Returns true, if the ContentType is not BINARY.

Trait Implementations

impl Copy for ContentType
[src]

impl Clone for ContentType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ContentType
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ContentType
[src]

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

This method tests for !=.

impl Display for ContentType
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ContentType

impl Sync for ContentType