pub struct RealExpressionId { /* private fields */ }Implementations§
Source§impl RealExpressionId
impl RealExpressionId
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<RealExpressionId> for usize
impl Add<RealExpressionId> for usize
Source§type Output = RealExpressionId
type Output = RealExpressionId
The resulting type after applying the
+ operator.Source§fn add(self, other: RealExpressionId) -> RealExpressionId
fn add(self, other: RealExpressionId) -> RealExpressionId
Performs the
+ operation. Read moreSource§impl Add<usize> for RealExpressionId
impl Add<usize> for RealExpressionId
Source§impl Add for RealExpressionId
impl Add for RealExpressionId
Source§type Output = RealExpressionId
type Output = RealExpressionId
The resulting type after applying the
+ operator.Source§fn add(self, other: RealExpressionId) -> RealExpressionId
fn add(self, other: RealExpressionId) -> RealExpressionId
Performs the
+ operation. Read moreSource§impl AddAssign<usize> for RealExpressionId
impl AddAssign<usize> for RealExpressionId
Source§fn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the
+= operation. Read moreSource§impl AddAssign for RealExpressionId
impl AddAssign for RealExpressionId
Source§fn add_assign(&mut self, other: RealExpressionId)
fn add_assign(&mut self, other: RealExpressionId)
Performs the
+= operation. Read moreSource§impl Clone for RealExpressionId
impl Clone for RealExpressionId
Source§fn clone(&self) -> RealExpressionId
fn clone(&self) -> RealExpressionId
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 RealExpressionId
impl Debug for RealExpressionId
Source§impl Display for RealExpressionId
impl Display for RealExpressionId
Source§impl From<RealExpressionId> for u32
impl From<RealExpressionId> for u32
Source§fn from(v: RealExpressionId) -> u32
fn from(v: RealExpressionId) -> u32
Converts to this type from the input type.
Source§impl From<RealExpressionId> for usize
impl From<RealExpressionId> for usize
Source§fn from(v: RealExpressionId) -> usize
fn from(v: RealExpressionId) -> usize
Converts to this type from the input type.
Source§impl From<u32> for RealExpressionId
impl From<u32> for RealExpressionId
Source§impl From<usize> for RealExpressionId
impl From<usize> for RealExpressionId
Source§impl Hash for RealExpressionId
impl Hash for RealExpressionId
Source§impl Idx for RealExpressionId
impl Idx for RealExpressionId
Source§impl Index<RealExpressionId> for Mir
impl Index<RealExpressionId> for Mir
Source§impl IndexMut<RealExpressionId> for Mir
impl IndexMut<RealExpressionId> for Mir
Source§impl Ord for RealExpressionId
impl Ord for RealExpressionId
Source§fn cmp(&self, other: &RealExpressionId) -> Ordering
fn cmp(&self, other: &RealExpressionId) -> 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<RealExpressionId> for usize
impl PartialEq<RealExpressionId> for usize
Source§impl PartialEq<usize> for RealExpressionId
impl PartialEq<usize> for RealExpressionId
Source§impl PartialEq for RealExpressionId
impl PartialEq for RealExpressionId
Source§impl PartialOrd<RealExpressionId> for usize
impl PartialOrd<RealExpressionId> for usize
Source§impl PartialOrd<usize> for RealExpressionId
impl PartialOrd<usize> for RealExpressionId
Source§impl PartialOrd for RealExpressionId
impl PartialOrd for RealExpressionId
Source§impl Rem<usize> for RealExpressionId
impl Rem<usize> for RealExpressionId
Source§impl Sub<RealExpressionId> for usize
impl Sub<RealExpressionId> for usize
Source§type Output = RealExpressionId
type Output = RealExpressionId
The resulting type after applying the
- operator.Source§fn sub(self, other: RealExpressionId) -> RealExpressionId
fn sub(self, other: RealExpressionId) -> RealExpressionId
Performs the
- operation. Read moreSource§impl Sub<usize> for RealExpressionId
impl Sub<usize> for RealExpressionId
Source§impl Sub for RealExpressionId
impl Sub for RealExpressionId
Source§type Output = RealExpressionId
type Output = RealExpressionId
The resulting type after applying the
- operator.Source§fn sub(self, other: RealExpressionId) -> RealExpressionId
fn sub(self, other: RealExpressionId) -> RealExpressionId
Performs the
- operation. Read moreSource§impl SubAssign<usize> for RealExpressionId
impl SubAssign<usize> for RealExpressionId
Source§fn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the
-= operation. Read moreSource§impl SubAssign for RealExpressionId
impl SubAssign for RealExpressionId
Source§fn sub_assign(&mut self, other: RealExpressionId)
fn sub_assign(&mut self, other: RealExpressionId)
Performs the
-= operation. Read moreimpl Copy for RealExpressionId
impl Eq for RealExpressionId
impl StructuralPartialEq for RealExpressionId
Auto Trait Implementations§
impl Freeze for RealExpressionId
impl RefUnwindSafe for RealExpressionId
impl Send for RealExpressionId
impl Sync for RealExpressionId
impl Unpin for RealExpressionId
impl UnwindSafe for RealExpressionId
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.