Enum bimap::Overwritten [] [src]

pub enum Overwritten<L, R> {
    Neither,
    Left(L, R),
    Right(L, R),
    Both((L, R)(L, R)),
    Pair(L, R),
}

The previous left-right pairs, if any, that were overwritten by a call to bimap.insert().

Variants

Neither the left nor the right value previously existed in the Bimap.

The left value existed in the Bimap, and the previous left-right pair is returned.

The right value existed in the Bimap, and the previous left-right pair is returned.

Both the left and the right value existed in the Bimap, but as part of separate pairs. The first tuple is the left-right pair of the previous left value, and the second is the left-right pair of the previous right value.

The left-right pair already existed in the Bimap, and the previous left-right pair is returned.

Trait Implementations

impl<L: Clone, R: Clone> Clone for Overwritten<L, R>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<L: Debug, R: Debug> Debug for Overwritten<L, R>
[src]

[src]

Formats the value using the given formatter.

impl<L: Eq, R: Eq> Eq for Overwritten<L, R>
[src]

impl<L: PartialEq, R: PartialEq> PartialEq for Overwritten<L, R>
[src]

[src]

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

[src]

This method tests for !=.