Struct checksum::Checksum
[−]
[src]
pub struct Checksum { /* fields omitted */ }
Represents checksum algorithm
Methods
impl Checksum
[src]
fn new<T: 'static + Digest>(algo_name: String, algorithm: T) -> Checksum
Constructs new Checksum
fn input(&mut self, slice_content: &[u8])
Provides input for algorithm
fn result(&mut self) -> String
Returns result in the following format: {name} - {hash}
fn checksum(&mut self) -> String
Returns hashsum
fn reset(&mut self)
Resets hashing
fn get_file_ext(&self) -> String
Returns algorithm's name for file extension(lowercase)
fn get_type_string(&self) -> String
Returns name of algorithm in format {name} -