Struct sbxor::Sbxor [−][src]
pub struct Sbxor { pub encoded_str: String, pub decoded_strs: Vec<String>, pub is_english: bool, pub encoding_byte: Option<u8>, }
Fields
encoded_str: String
decoded_strs: Vec<String>
is_english: bool
encoding_byte: Option<u8>
Methods
impl Sbxor
[src]
impl Sbxor
pub fn new() -> Sbxor
[src]
pub fn new() -> Sbxor
Instantiate a Sbxor object
Examples
use sbxor::*; let sbxor = Sbxor::new(); assert_eq!(sbxor.is_english, false);
pub fn create(encoded_str: String) -> Sbxor
[src]
pub fn create(encoded_str: String) -> Sbxor
Populates the Sbxor object's encoded_str field
Examples
use sbxor::*; let encoded_str = "1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736".to_string(); let sbxor = Sbxor::create(encoded_str); assert_ne!(sbxor.encoded_str.len(), 0);
pub fn decode_sbxor(&mut self)
[src]
pub fn decode_sbxor(&mut self)
Populate the decode field of the Sbxor object.
Examples
use sbxor::*; let encoded_str = "1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736".to_string(); let mut sbxor = Sbxor::create(encoded_str); sbxor.decode_sbxor(); assert_ne!(sbxor.decoded_strs.len(), 0);
pub fn decode_sbxor_char(&mut self, encoding_byte: u8)
[src]
pub fn decode_sbxor_char(&mut self, encoding_byte: u8)
pub fn encode_sbxor_phrase(
&mut self,
encoding_phrase: String,
input_phrase: String
)
[src]
pub fn encode_sbxor_phrase(
&mut self,
encoding_phrase: String,
input_phrase: String
)