Enum iodyn::raz_meta::Position
[−]
[src]
pub enum Position<I> { Left, Right, Center(I), }
A common pattern for indexes
Exposes the common left and right cases necessary for meta indexes, with a center case that takes a more specific index.
Variants
Left
Right
Center(I)
Trait Implementations
impl<I: Debug> Debug for Position<I>
[src]
impl<I: Clone> Clone for Position<I>
[src]
fn clone(&self) -> Position<I>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<I: Eq> Eq for Position<I>
[src]
impl<I: PartialEq> PartialEq for Position<I>
[src]
fn eq(&self, __arg_0: &Position<I>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Position<I>) -> bool
This method tests for !=
.
impl<I: Hash> Hash for Position<I>
[src]
fn hash<__HI: Hasher>(&self, __arg_0: &mut __HI)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<I> FirstLast for Position<I>
[src]
impl<I> From<I> for Position<I>
[src]
fn from(index: I) -> Self
Performs the conversion.