Struct a_range::From [−][src]
pub struct From<Idx> { /* fields omitted */ }
Methods
impl<Idx> From<Idx>
[src]
impl<Idx> From<Idx>
pub fn up_to(self, x: Idx) -> Range<Idx, Upwards>
[src]
pub fn up_to(self, x: Idx) -> Range<Idx, Upwards>
Construct a Range that counts up to the given item.
pub fn down_to(self, x: Idx) -> Range<Idx, Downwards>
[src]
pub fn down_to(self, x: Idx) -> Range<Idx, Downwards>
Construct a Range that counts down to the given item.
Trait Implementations
impl<Idx: Clone> Clone for From<Idx>
[src]
impl<Idx: Clone> Clone for From<Idx>
fn clone(&self) -> From<Idx>
[src]
fn clone(&self) -> From<Idx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<Idx: Debug> Debug for From<Idx>
[src]
impl<Idx: Debug> Debug for From<Idx>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Idx: Hash> Hash for From<Idx>
[src]
impl<Idx: Hash> Hash for From<Idx>
fn hash<__HIdx: Hasher>(&self, state: &mut __HIdx)
[src]
fn hash<__HIdx: Hasher>(&self, state: &mut __HIdx)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<Idx: PartialEq> PartialEq for From<Idx>
[src]
impl<Idx: PartialEq> PartialEq for From<Idx>
fn eq(&self, other: &From<Idx>) -> bool
[src]
fn eq(&self, other: &From<Idx>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &From<Idx>) -> bool
[src]
fn ne(&self, other: &From<Idx>) -> bool
This method tests for !=
.
impl<Idx: Eq> Eq for From<Idx>
[src]
impl<Idx: Eq> Eq for From<Idx>
impl<Idx: PartialOrd> PartialOrd for From<Idx>
[src]
impl<Idx: PartialOrd> PartialOrd for From<Idx>
fn partial_cmp(&self, other: &From<Idx>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &From<Idx>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &From<Idx>) -> bool
[src]
fn lt(&self, other: &From<Idx>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &From<Idx>) -> bool
[src]
fn le(&self, other: &From<Idx>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &From<Idx>) -> bool
[src]
fn gt(&self, other: &From<Idx>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &From<Idx>) -> bool
[src]
fn ge(&self, other: &From<Idx>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more