Struct dusk_dire::hir::GenericContextNsId
source · [−]#[repr(transparent)]pub struct GenericContextNsId { /* private fields */ }
Implementations
sourceimpl GenericContextNsId
impl GenericContextNsId
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
sourceimpl Add<GenericContextNsId> for GenericContextNsId
impl Add<GenericContextNsId> for GenericContextNsId
type Output = GenericContextNsId
type Output = GenericContextNsId
The resulting type after applying the +
operator.
sourcefn add(self, other: GenericContextNsId) -> GenericContextNsId
fn add(self, other: GenericContextNsId) -> GenericContextNsId
Performs the +
operation. Read more
sourceimpl Add<GenericContextNsId> for usize
impl Add<GenericContextNsId> for usize
type Output = GenericContextNsId
type Output = GenericContextNsId
The resulting type after applying the +
operator.
sourcefn add(self, other: GenericContextNsId) -> GenericContextNsId
fn add(self, other: GenericContextNsId) -> GenericContextNsId
Performs the +
operation. Read more
sourceimpl Add<usize> for GenericContextNsId
impl Add<usize> for GenericContextNsId
sourceimpl AddAssign<GenericContextNsId> for GenericContextNsId
impl AddAssign<GenericContextNsId> for GenericContextNsId
sourcefn add_assign(&mut self, other: GenericContextNsId)
fn add_assign(&mut self, other: GenericContextNsId)
Performs the +=
operation. Read more
sourceimpl AddAssign<usize> for GenericContextNsId
impl AddAssign<usize> for GenericContextNsId
sourcefn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the +=
operation. Read more
sourceimpl Clone for GenericContextNsId
impl Clone for GenericContextNsId
sourcefn clone(&self) -> GenericContextNsId
fn clone(&self) -> GenericContextNsId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GenericContextNsId
impl Debug for GenericContextNsId
sourceimpl From<GenericContextNsId> for usize
impl From<GenericContextNsId> for usize
sourcefn from(v: GenericContextNsId) -> usize
fn from(v: GenericContextNsId) -> usize
Converts to this type from the input type.
sourceimpl From<usize> for GenericContextNsId
impl From<usize> for GenericContextNsId
sourceimpl Hash for GenericContextNsId
impl Hash for GenericContextNsId
sourceimpl Idx for GenericContextNsId
impl Idx for GenericContextNsId
sourceimpl Ord for GenericContextNsId
impl Ord for GenericContextNsId
sourcefn cmp(&self, other: &GenericContextNsId) -> Ordering
fn cmp(&self, other: &GenericContextNsId) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<GenericContextNsId> for GenericContextNsId
impl PartialEq<GenericContextNsId> for GenericContextNsId
sourcefn eq(&self, other: &GenericContextNsId) -> bool
fn eq(&self, other: &GenericContextNsId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GenericContextNsId) -> bool
fn ne(&self, other: &GenericContextNsId) -> bool
This method tests for !=
.
sourceimpl PartialEq<GenericContextNsId> for usize
impl PartialEq<GenericContextNsId> for usize
sourceimpl PartialEq<usize> for GenericContextNsId
impl PartialEq<usize> for GenericContextNsId
sourceimpl PartialOrd<GenericContextNsId> for GenericContextNsId
impl PartialOrd<GenericContextNsId> for GenericContextNsId
sourcefn partial_cmp(&self, other: &GenericContextNsId) -> Option<Ordering>
fn partial_cmp(&self, other: &GenericContextNsId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<GenericContextNsId> for usize
impl PartialOrd<GenericContextNsId> for usize
sourcefn partial_cmp(&self, other: &GenericContextNsId) -> Option<Ordering>
fn partial_cmp(&self, other: &GenericContextNsId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<usize> for GenericContextNsId
impl PartialOrd<usize> for GenericContextNsId
sourcefn partial_cmp(&self, other: &usize) -> Option<Ordering>
fn partial_cmp(&self, other: &usize) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Rem<usize> for GenericContextNsId
impl Rem<usize> for GenericContextNsId
sourceimpl Sub<GenericContextNsId> for GenericContextNsId
impl Sub<GenericContextNsId> for GenericContextNsId
type Output = GenericContextNsId
type Output = GenericContextNsId
The resulting type after applying the -
operator.
sourcefn sub(self, other: GenericContextNsId) -> GenericContextNsId
fn sub(self, other: GenericContextNsId) -> GenericContextNsId
Performs the -
operation. Read more
sourceimpl Sub<GenericContextNsId> for usize
impl Sub<GenericContextNsId> for usize
type Output = GenericContextNsId
type Output = GenericContextNsId
The resulting type after applying the -
operator.
sourcefn sub(self, other: GenericContextNsId) -> GenericContextNsId
fn sub(self, other: GenericContextNsId) -> GenericContextNsId
Performs the -
operation. Read more
sourceimpl Sub<usize> for GenericContextNsId
impl Sub<usize> for GenericContextNsId
sourceimpl SubAssign<GenericContextNsId> for GenericContextNsId
impl SubAssign<GenericContextNsId> for GenericContextNsId
sourcefn sub_assign(&mut self, other: GenericContextNsId)
fn sub_assign(&mut self, other: GenericContextNsId)
Performs the -=
operation. Read more
sourceimpl SubAssign<usize> for GenericContextNsId
impl SubAssign<usize> for GenericContextNsId
sourcefn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the -=
operation. Read more
impl Copy for GenericContextNsId
impl Eq for GenericContextNsId
impl StructuralEq for GenericContextNsId
impl StructuralPartialEq for GenericContextNsId
Auto Trait Implementations
impl RefUnwindSafe for GenericContextNsId
impl Send for GenericContextNsId
impl Sync for GenericContextNsId
impl Unpin for GenericContextNsId
impl UnwindSafe for GenericContextNsId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more