Union nibble::pair::u4x2 [] [src]

#[repr(C)]
pub union u4x2 { // some fields omitted }

A u8 split into its component nibbles.

Methods

impl u4x2
[src]

[src]

Creates a pair with an empty low-order nibble.

[src]

Creates a pair with an empty high-order nibble.

[src]

Creates a pair from its components.

[src]

Creates a pair from an already-combined byte.

[src]

The high-order nibble.

[src]

The low-order nibble.

[src]

Both nibbles.

[src]

Both nibbles as a byte.

[src]

Mutable access to the high-order nibble in a cell.

[src]

Mutable access to the low-order nibble in a cell.

[src]

Mutable access to both nibbles in cells.

[src]

Mutable access to the whole byte.

[src]

Provides access to the nibbles in a byte.

[src]

Provides access to the nibbles in a byte.

[src]

Sets the low-order nibble.

[src]

Sets the low-order nibble.

[src]

Swaps the nibbles in the pair.

[src]

Iterator over the nibble pair.

[src]

Mutable iterator over the nibble pair.

[src]

Converts an ASCII hex digit into a nibble.

[src]

Converts a nibble into a lowercase ASCII hex digit.

[src]

Converts a nibble into an uppercase ASCII hex digit.

[src]

Converts a hex digit into a nibble.

[src]

Converts a nibble into a lowercase hex digit.

[src]

Converts a nibble into an uppercase hex digit.

[src]

Converts a nibble into a lowercase hex string.

[src]

Converts a nibble into an uppercase hex string.

[src]

Converts a nibble into a binary string.

Trait Implementations

impl PartialEq<u4x2> for u4x2
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<u8> for u4x2
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialOrd<u4x2> for u4x2
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl PartialOrd<u8> for u4x2
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl Hash for u4x2
[src]

[src]

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

1.3.0
[src]

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

impl Eq for u4x2
[src]

impl Ord for u4x2
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Binary for u4x2
[src]

[src]

Formats the value using the given formatter.

impl LowerHex for u4x2
[src]

[src]

Formats the value using the given formatter.

impl UpperHex for u4x2
[src]

[src]

Formats the value using the given formatter.

impl Debug for u4x2
[src]

[src]

Formats the value using the given formatter.

impl Display for u4x2
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for u4x2
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for u4x2
[src]

impl From<u4hi> for u4x2
[src]

[src]

Performs the conversion.

impl From<u4lo> for u4x2
[src]

[src]

Performs the conversion.

impl From<u8> for u4x2
[src]

[src]

Performs the conversion.