Enum armorlib::preprocessors::text::Encoding
[−]
[src]
pub enum Encoding {
Ascii,
Utf8,
Utf16,
Utf32,
NoData,
Binary,
}Variants
AsciiUtf8Utf16Utf32NoDataBinary
Methods
impl Encoding[src]
pub fn is_text(&self) -> bool[src]
pub fn determine_encoding(binary_object: &BinaryObject) -> Encoding[src]
pub fn extract_text(&self, binary_object: &BinaryObject) -> String[src]
Extract the given binary object's data into a String. Some string will be generated for any and all possible binary objects. It may contain invalid characters.
Trait Implementations
impl Debug for Encoding[src]
impl Copy for Encoding[src]
impl Clone for Encoding[src]
fn clone(&self) -> Encoding[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 Hash for Encoding[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for Encoding[src]
fn eq(&self, __arg_0: &Encoding) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.