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