Struct subtle_encoding::identity::Identity[][src]

pub struct Identity {}

Encoding which does not transform data and returns the original input.

Trait Implementations

impl Copy for Identity
[src]

impl Clone for Identity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Identity
[src]

Formats the value using the given formatter. Read more

impl Default for Identity
[src]

Returns the "default value" for a type. Read more

impl Eq for Identity
[src]

impl Hash for Identity
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Identity
[src]

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

This method tests for !=.

impl PartialOrd for Identity
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Identity
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Encoding for Identity
[src]

Encode the given slice into the destination buffer. Read more

Calculate the length of the given data after encoding.

Decode hexadecimal (upper or lower case) with branchless / secret-independent logic

Calculate the length of the given data after decoding.

Encode the given buffer, returning a Vec<u8>

Encode the given slice to a String with this Encoding. Read more

Encode the given slice with this Encoding, writing the result to the supplied io::Write type, returning the number of bytes written or a Error. Read more

Encode self and write it to a file at the given path, returning the resulting File or a Error. Read more

Decode the given buffer, returning a Vec<u8>

Decode the given string-alike type with this Encoding, returning the decoded value or a Error. Read more

Decode the data read from the given io::Read type with this Encoding, returning the decoded value or a Error. Read more

Read a file at the given path, decoding the data it contains using the provided Encoding, returning the decoded value or a Error. Read more

Auto Trait Implementations

impl Send for Identity

impl Sync for Identity