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

Methods

impl Sbxor
[src]

Instantiate a Sbxor object

Examples

use sbxor::*;
let sbxor = Sbxor::new();

assert_eq!(sbxor.is_english, false);

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);

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);

Auto Trait Implementations

impl Send for Sbxor

impl Sync for Sbxor