Struct tripcode::ScSjis
[−]
[src]
pub struct ScSjis;
Same as Sc
except that it treats passwords as Shift-JIS-encoded
when generating katakana tripcodes.
Trait Implementations
impl TripcodeGenerator for ScSjis
[src]
type Hash = ScHash
The type of hash value that represents resulting tripcodes. Read more
fn hash<P: AsRef<[u8]>>(password: &P) -> ScHash
Generates a hash value that represents the tripcode for password
.
fn generate<P: AsRef<[u8]>>(password: &P) -> String
Generates a tripcode from password
.
fn append<P: AsRef<[u8]>>(password: &P, dst: &mut String)
Generates a tripcode from password
and appends it to a String
.
fn write<P, W>(password: &P, dst: &mut W) -> Result<()> where P: AsRef<[u8]>, W: Write
Generates a tripcode into a Write
.
fn generate_sjis<P: AsRef<[u8]>>(password: &P) -> Vec<u8>
Generates a tripcode in Shift-JIS encoding.
fn append_sjis<P: AsRef<[u8]>>(password: &P, dst: &mut Vec<u8>)
Generates a Shift-JIS-encoded tripcode and appends it to a Vec<u8>
.
fn write_sjis<P, W>(password: &P, dst: &mut W) -> Result<()> where P: AsRef<[u8]>, W: Write
Generates a Shift-JIS-encoded tripcode into a Write
.