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
"binary" data
UTF_8
UTF-8 encoded "text" data
UTF_8_BOM
UTF-8 encoded "text" data with a byte order mark.
UTF_16LE
UTF-16 encoded "text" data (little endian)
UTF_16BE
UTF-16 encoded "text" data (big endian)
UTF_32LE
UTF-32 encoded "text" data (little endian)
UTF_32BE
UTF-32 encoded "text" data (big endian)
Methods
impl ContentType
[src]
impl ContentType
pub fn is_binary(self) -> bool
[src]
pub fn is_binary(self) -> bool
Returns true
, if the ContentType
is BINARY
.
pub fn is_text(self) -> bool
[src]
pub fn is_text(self) -> bool
Returns true
, if the ContentType
is not BINARY
.
Trait Implementations
impl Copy for ContentType
[src]
impl Copy for ContentType
impl Clone for ContentType
[src]
impl Clone for ContentType
fn clone(&self) -> ContentType
[src]
fn clone(&self) -> ContentType
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
impl Debug for ContentType
[src]
impl Debug for ContentType
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 PartialEq for ContentType
[src]
impl PartialEq for ContentType
fn eq(&self, other: &ContentType) -> bool
[src]
fn eq(&self, other: &ContentType) -> 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 Display for ContentType
[src]
impl Display for ContentType
Auto Trait Implementations
impl Send for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Sync for ContentType