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