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