Struct chalk_engine::TableIndex [−]
pub struct TableIndex { /* fields omitted */ }
Methods
impl TableIndex
impl TableIndex
pub fn get_and_increment(&mut self) -> Self
pub fn get_and_increment(&mut self) -> Self
pub fn increment(&mut self)
pub fn increment(&mut self)
Trait Implementations
impl Copy for TableIndex
impl Copy for TableIndex
impl Clone for TableIndex
impl Clone for TableIndex
fn clone(&self) -> TableIndex
fn clone(&self) -> TableIndex
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 PartialEq for TableIndex
impl PartialEq for TableIndex
fn eq(&self, other: &TableIndex) -> bool
fn eq(&self, other: &TableIndex) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TableIndex) -> bool
fn ne(&self, other: &TableIndex) -> bool
This method tests for !=
.
impl Eq for TableIndex
impl Eq for TableIndex
impl PartialOrd for TableIndex
impl PartialOrd for TableIndex
fn partial_cmp(&self, other: &TableIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &TableIndex) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &TableIndex) -> bool
fn lt(&self, other: &TableIndex) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &TableIndex) -> bool
fn le(&self, other: &TableIndex) -> 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: &TableIndex) -> bool
fn gt(&self, other: &TableIndex) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &TableIndex) -> bool
fn ge(&self, other: &TableIndex) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for TableIndex
impl Ord for TableIndex
fn cmp(&self, other: &TableIndex) -> Ordering
fn cmp(&self, other: &TableIndex) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for TableIndex
impl Hash for TableIndex
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
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 Debug for TableIndex
impl Debug for TableIndex
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Step for TableIndex
impl Step for TableIndex
fn steps_between(start: &Self, end: &Self) -> Option<usize>
fn steps_between(start: &Self, end: &Self) -> Option<usize>
🔬 This is a nightly-only experimental API. (step_trait
)
likely to be replaced by finer-grained traits
Returns the number of steps between two step objects. The count is inclusive of start
and exclusive of end
. Read more
fn replace_one(&mut self) -> Self
fn replace_one(&mut self) -> Self
🔬 This is a nightly-only experimental API. (step_trait
)
likely to be replaced by finer-grained traits
Replaces this step with 1
, returning itself
fn replace_zero(&mut self) -> Self
fn replace_zero(&mut self) -> Self
🔬 This is a nightly-only experimental API. (step_trait
)
likely to be replaced by finer-grained traits
Replaces this step with 0
, returning itself
fn add_one(&self) -> Self
fn add_one(&self) -> Self
🔬 This is a nightly-only experimental API. (step_trait
)
likely to be replaced by finer-grained traits
Adds one to this step, returning the result
fn sub_one(&self) -> Self
fn sub_one(&self) -> Self
🔬 This is a nightly-only experimental API. (step_trait
)
likely to be replaced by finer-grained traits
Subtracts one to this step, returning the result
fn add_usize(&self, n: usize) -> Option<Self>
fn add_usize(&self, n: usize) -> Option<Self>
🔬 This is a nightly-only experimental API. (step_trait
)
likely to be replaced by finer-grained traits
Add an usize, returning None on overflow
impl From<usize> for TableIndex
impl From<usize> for TableIndex
Auto Trait Implementations
impl Send for TableIndex
impl Send for TableIndex
impl Sync for TableIndex
impl Sync for TableIndex