pub struct IntegerExpressionId { /* private fields */ }Implementations§
Source§impl IntegerExpressionId
impl IntegerExpressionId
Sourcepub const MAX_INDEX: usize = 4_294_967_295usize
pub const MAX_INDEX: usize = 4_294_967_295usize
If Self::CHECKS_MAX_INDEX is true, we’ll assert if trying to
produce a value larger than this in any of the ctors that don’t
have unchecked in their name.
Sourcepub const CHECKS_MAX_INDEX: bool = true
pub const CHECKS_MAX_INDEX: bool = true
Does this index type assert if asked to construct an index larger than MAX_INDEX?
Sourcepub fn from_foreign<F: Idx>(value: F) -> Self
pub fn from_foreign<F: Idx>(value: F) -> Self
Construct this index type from one in a different domain
Sourcepub const fn from_usize_unchecked(value: usize) -> Self
pub const fn from_usize_unchecked(value: usize) -> Self
Construct from a usize without any checks.
Sourcepub const fn from_raw_unchecked(raw: u32) -> Self
pub const fn from_raw_unchecked(raw: u32) -> Self
Construct from the underlying type without any checks.
Sourcepub fn from_usize(value: usize) -> Self
pub fn from_usize(value: usize) -> Self
Construct this index type from a usize.
Sourcepub fn check_index(v: usize)
pub fn check_index(v: usize)
Asserts v <= Self::MAX_INDEX unless Self::CHECKS_MAX_INDEX is false.
Trait Implementations§
Source§impl Add<IntegerExpressionId> for usize
impl Add<IntegerExpressionId> for usize
Source§type Output = IntegerExpressionId
type Output = IntegerExpressionId
The resulting type after applying the
+ operator.Source§fn add(self, other: IntegerExpressionId) -> IntegerExpressionId
fn add(self, other: IntegerExpressionId) -> IntegerExpressionId
Performs the
+ operation. Read moreSource§impl Add<usize> for IntegerExpressionId
impl Add<usize> for IntegerExpressionId
Source§impl Add for IntegerExpressionId
impl Add for IntegerExpressionId
Source§type Output = IntegerExpressionId
type Output = IntegerExpressionId
The resulting type after applying the
+ operator.Source§fn add(self, other: IntegerExpressionId) -> IntegerExpressionId
fn add(self, other: IntegerExpressionId) -> IntegerExpressionId
Performs the
+ operation. Read moreSource§impl AddAssign<usize> for IntegerExpressionId
impl AddAssign<usize> for IntegerExpressionId
Source§fn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the
+= operation. Read moreSource§impl AddAssign for IntegerExpressionId
impl AddAssign for IntegerExpressionId
Source§fn add_assign(&mut self, other: IntegerExpressionId)
fn add_assign(&mut self, other: IntegerExpressionId)
Performs the
+= operation. Read moreSource§impl Clone for IntegerExpressionId
impl Clone for IntegerExpressionId
Source§fn clone(&self) -> IntegerExpressionId
fn clone(&self) -> IntegerExpressionId
Returns a duplicate 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 IntegerExpressionId
impl Debug for IntegerExpressionId
Source§impl Display for IntegerExpressionId
impl Display for IntegerExpressionId
Source§impl From<IntegerExpressionId> for u32
impl From<IntegerExpressionId> for u32
Source§fn from(v: IntegerExpressionId) -> u32
fn from(v: IntegerExpressionId) -> u32
Converts to this type from the input type.
Source§impl From<IntegerExpressionId> for usize
impl From<IntegerExpressionId> for usize
Source§fn from(v: IntegerExpressionId) -> usize
fn from(v: IntegerExpressionId) -> usize
Converts to this type from the input type.
Source§impl From<u32> for IntegerExpressionId
impl From<u32> for IntegerExpressionId
Source§impl From<usize> for IntegerExpressionId
impl From<usize> for IntegerExpressionId
Source§impl Hash for IntegerExpressionId
impl Hash for IntegerExpressionId
Source§impl Idx for IntegerExpressionId
impl Idx for IntegerExpressionId
Source§impl Index<IntegerExpressionId> for Mir
impl Index<IntegerExpressionId> for Mir
Source§impl IndexMut<IntegerExpressionId> for Mir
impl IndexMut<IntegerExpressionId> for Mir
Source§impl Ord for IntegerExpressionId
impl Ord for IntegerExpressionId
Source§fn cmp(&self, other: &IntegerExpressionId) -> Ordering
fn cmp(&self, other: &IntegerExpressionId) -> 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<IntegerExpressionId> for usize
impl PartialEq<IntegerExpressionId> for usize
Source§impl PartialEq<usize> for IntegerExpressionId
impl PartialEq<usize> for IntegerExpressionId
Source§impl PartialEq for IntegerExpressionId
impl PartialEq for IntegerExpressionId
Source§impl PartialOrd<IntegerExpressionId> for usize
impl PartialOrd<IntegerExpressionId> for usize
Source§impl PartialOrd<usize> for IntegerExpressionId
impl PartialOrd<usize> for IntegerExpressionId
Source§impl PartialOrd for IntegerExpressionId
impl PartialOrd for IntegerExpressionId
Source§impl Rem<usize> for IntegerExpressionId
impl Rem<usize> for IntegerExpressionId
Source§impl Sub<IntegerExpressionId> for usize
impl Sub<IntegerExpressionId> for usize
Source§type Output = IntegerExpressionId
type Output = IntegerExpressionId
The resulting type after applying the
- operator.Source§fn sub(self, other: IntegerExpressionId) -> IntegerExpressionId
fn sub(self, other: IntegerExpressionId) -> IntegerExpressionId
Performs the
- operation. Read moreSource§impl Sub<usize> for IntegerExpressionId
impl Sub<usize> for IntegerExpressionId
Source§impl Sub for IntegerExpressionId
impl Sub for IntegerExpressionId
Source§type Output = IntegerExpressionId
type Output = IntegerExpressionId
The resulting type after applying the
- operator.Source§fn sub(self, other: IntegerExpressionId) -> IntegerExpressionId
fn sub(self, other: IntegerExpressionId) -> IntegerExpressionId
Performs the
- operation. Read moreSource§impl SubAssign<usize> for IntegerExpressionId
impl SubAssign<usize> for IntegerExpressionId
Source§fn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the
-= operation. Read moreSource§impl SubAssign for IntegerExpressionId
impl SubAssign for IntegerExpressionId
Source§fn sub_assign(&mut self, other: IntegerExpressionId)
fn sub_assign(&mut self, other: IntegerExpressionId)
Performs the
-= operation. Read moreimpl Copy for IntegerExpressionId
impl Eq for IntegerExpressionId
impl StructuralPartialEq for IntegerExpressionId
Auto Trait Implementations§
impl Freeze for IntegerExpressionId
impl RefUnwindSafe for IntegerExpressionId
impl Send for IntegerExpressionId
impl Sync for IntegerExpressionId
impl Unpin for IntegerExpressionId
impl UnwindSafe for IntegerExpressionId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.