Enum hash_arr_map::Key[][src]

pub enum Key<'a, T> {
    Owned(T),
    Borrowed(&'a T),
}
Expand description

This is partly like Cow, but the ‘owned’ type is always the same as the ‘borrowed’ type.

Variants

Owned(T)

Tuple Fields of Owned

0: T
Borrowed(&'a T)

Tuple Fields of Borrowed

0: &'a T

Trait Implementations

Formats the value using the given formatter.

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Formats the value using the given formatter. Read more

Convert it. Read more

Try to convert self into an Idx. Read more

Formats the value using the given formatter.

Formats the value using the given formatter.

Whether the specified value is allowed to be used to make an index out of thin air. Read more

Formats the value using the given formatter.

Formats the value using the given formatter.

Formats the value using the given formatter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.