Enum content_inspector::ContentType
source · pub enum ContentType {
BINARY,
UTF_8,
UTF_8_BOM,
UTF_16LE,
UTF_16BE,
UTF_32LE,
UTF_32BE,
}
Expand description
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)
Implementations§
Trait Implementations§
source§impl Clone for ContentType
impl Clone for ContentType
source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContentType
impl Debug for ContentType
source§impl Display for ContentType
impl Display for ContentType
source§impl PartialEq<ContentType> for ContentType
impl PartialEq<ContentType> for ContentType
source§fn eq(&self, other: &ContentType) -> bool
fn eq(&self, other: &ContentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.