Struct subtle_encoding::hex::Hex[][src]

pub struct Hex { /* fields omitted */ }

Hexadecimal Encoding (a.k.a. Base16)

Methods

impl Hex
[src]

Lower case hex: 0-9 a-f

Upper case hex: 0-9 A-F

Trait Implementations

impl Copy for Hex
[src]

impl Clone for Hex
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Hex
[src]

Formats the value using the given formatter. Read more

impl Default for Hex
[src]

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

impl Eq for Hex
[src]

impl Hash for Hex
[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 Hex
[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 Hex
[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 Hex
[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 Hex
[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 Hex

impl Sync for Hex