Struct checksum::Checksum [] [src]

pub struct Checksum {
    // some 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} -

Trait Implementations

impl PartialEq for Checksum
[src]

fn eq(&self, right: &Checksum) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, right: &Checksum) -> bool

This method tests for !=.