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