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