Struct chalk_engine::table::AnswerIndex
source · pub(crate) struct AnswerIndex {
value: usize,
}
Fields§
§value: usize
Implementations§
source§impl AnswerIndex
impl AnswerIndex
pub(crate) fn get_and_increment(&mut self) -> Self
pub(crate) fn increment(&mut self)
pub fn iterate_range(range: Range<Self>) -> impl Iterator<Item = AnswerIndex>
source§impl AnswerIndex
impl AnswerIndex
pub(crate) const ZERO: AnswerIndex = _
Trait Implementations§
source§impl Clone for AnswerIndex
impl Clone for AnswerIndex
source§fn clone(&self) -> AnswerIndex
fn clone(&self) -> AnswerIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnswerIndex
impl Debug for AnswerIndex
source§impl From<usize> for AnswerIndex
impl From<usize> for AnswerIndex
source§impl Hash for AnswerIndex
impl Hash for AnswerIndex
source§impl Ord for AnswerIndex
impl Ord for AnswerIndex
source§fn cmp(&self, other: &AnswerIndex) -> Ordering
fn cmp(&self, other: &AnswerIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AnswerIndex
impl PartialEq for AnswerIndex
source§fn eq(&self, other: &AnswerIndex) -> bool
fn eq(&self, other: &AnswerIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AnswerIndex
impl PartialOrd for AnswerIndex
source§fn partial_cmp(&self, other: &AnswerIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &AnswerIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AnswerIndex
impl Eq for AnswerIndex
impl StructuralPartialEq for AnswerIndex
Auto Trait Implementations§
impl Freeze for AnswerIndex
impl RefUnwindSafe for AnswerIndex
impl Send for AnswerIndex
impl Sync for AnswerIndex
impl Unpin for AnswerIndex
impl UnwindSafe for AnswerIndex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Cast for T
impl<T> Cast for T
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.