pub struct VarIndex { /* fields omitted */ }
Creates a range between two indexes (upper bound is exclusive).
pub const MIN: usize
1.43.0[src]
pub const MAX: usize
1.43.0[src]
pub const BITS: u32
1.53.0[src]
pub fn as_ne_bytes(&self) -> &[u8; 4]
[src]
🔬 This is a nightly-only experimental API. (num_as_ne_bytes
)
Return the memory representation of this integer as a byte array in
native byte order.
to_ne_bytes
should be preferred over this whenever possible.
#![feature(num_as_ne_bytes)]
let num = 0x12345678usize;
let bytes = num.as_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
&[0x12, 0x34, 0x56, 0x78]
} else {
&[0x78, 0x56, 0x34, 0x12]
}
);
impl<T: Into<usize>> Add<T> for VarIndex
[src]
impl<T: Into<usize>> AddAssign<T> for VarIndex
[src]
impl Clone for VarIndex
[src]
impl Copy for VarIndex
[src]
impl Debug for VarIndex
[src]
impl Default for VarIndex
[src]
impl Deref for VarIndex
[src]
impl Display for VarIndex
[src]
impl Eq for VarIndex
[src]
impl<'a> From<&'a usize> for VarIndex
[src]
impl From<usize> for VarIndex
[src]
impl Hash for VarIndex
[src]
impl<T> Index<VarIndex> for VarMap<T>
[src]
impl<T> IndexMut<VarIndex> for VarMap<T>
[src]
impl Into<usize> for VarIndex
[src]
impl<'a> Into<usize> for &'a VarIndex
[src]
impl Ord for VarIndex
[src]
fn cmp(&self, other: &VarIndex) -> Ordering
[src]
#[must_use]
pub fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
#[must_use]
pub fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
Restrict a value to a certain interval. Read more
impl PartialEq<VarIndex> for VarIndex
[src]
impl PartialEq<usize> for VarIndex
[src]
fn eq(&self, int: &usize) -> bool
[src]
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
#[must_use]
pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialOrd<VarIndex> for VarIndex
[src]
fn partial_cmp(&self, other: &VarIndex) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
pub fn ge(&self, other: &Rhs) -> bool
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<usize> for VarIndex
[src]
fn partial_cmp(&self, int: &usize) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
pub fn ge(&self, other: &Rhs) -> bool
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 StructuralEq for VarIndex
[src]
impl StructuralPartialEq for VarIndex
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]