Struct dusk_dire::hir::ImperScopeNsId
source · [−]#[repr(transparent)]pub struct ImperScopeNsId { /* private fields */ }
Implementations
sourceimpl ImperScopeNsId
impl ImperScopeNsId
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<ImperScopeNsId> for ImperScopeNsId
impl Add<ImperScopeNsId> for ImperScopeNsId
type Output = ImperScopeNsId
type Output = ImperScopeNsId
The resulting type after applying the +
operator.
sourcefn add(self, other: ImperScopeNsId) -> ImperScopeNsId
fn add(self, other: ImperScopeNsId) -> ImperScopeNsId
Performs the +
operation. Read more
sourceimpl Add<ImperScopeNsId> for usize
impl Add<ImperScopeNsId> for usize
type Output = ImperScopeNsId
type Output = ImperScopeNsId
The resulting type after applying the +
operator.
sourcefn add(self, other: ImperScopeNsId) -> ImperScopeNsId
fn add(self, other: ImperScopeNsId) -> ImperScopeNsId
Performs the +
operation. Read more
sourceimpl Add<usize> for ImperScopeNsId
impl Add<usize> for ImperScopeNsId
sourceimpl AddAssign<ImperScopeNsId> for ImperScopeNsId
impl AddAssign<ImperScopeNsId> for ImperScopeNsId
sourcefn add_assign(&mut self, other: ImperScopeNsId)
fn add_assign(&mut self, other: ImperScopeNsId)
Performs the +=
operation. Read more
sourceimpl AddAssign<usize> for ImperScopeNsId
impl AddAssign<usize> for ImperScopeNsId
sourcefn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the +=
operation. Read more
sourceimpl Clone for ImperScopeNsId
impl Clone for ImperScopeNsId
sourcefn clone(&self) -> ImperScopeNsId
fn clone(&self) -> ImperScopeNsId
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 ImperScopeNsId
impl Debug for ImperScopeNsId
sourceimpl From<ImperScopeNsId> for usize
impl From<ImperScopeNsId> for usize
sourcefn from(v: ImperScopeNsId) -> usize
fn from(v: ImperScopeNsId) -> usize
Converts to this type from the input type.
sourceimpl From<usize> for ImperScopeNsId
impl From<usize> for ImperScopeNsId
sourceimpl Hash for ImperScopeNsId
impl Hash for ImperScopeNsId
sourceimpl Idx for ImperScopeNsId
impl Idx for ImperScopeNsId
sourceimpl Ord for ImperScopeNsId
impl Ord for ImperScopeNsId
sourcefn cmp(&self, other: &ImperScopeNsId) -> Ordering
fn cmp(&self, other: &ImperScopeNsId) -> 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<ImperScopeNsId> for ImperScopeNsId
impl PartialEq<ImperScopeNsId> for ImperScopeNsId
sourcefn eq(&self, other: &ImperScopeNsId) -> bool
fn eq(&self, other: &ImperScopeNsId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ImperScopeNsId) -> bool
fn ne(&self, other: &ImperScopeNsId) -> bool
This method tests for !=
.
sourceimpl PartialEq<ImperScopeNsId> for usize
impl PartialEq<ImperScopeNsId> for usize
sourceimpl PartialEq<usize> for ImperScopeNsId
impl PartialEq<usize> for ImperScopeNsId
sourceimpl PartialOrd<ImperScopeNsId> for ImperScopeNsId
impl PartialOrd<ImperScopeNsId> for ImperScopeNsId
sourcefn partial_cmp(&self, other: &ImperScopeNsId) -> Option<Ordering>
fn partial_cmp(&self, other: &ImperScopeNsId) -> 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<ImperScopeNsId> for usize
impl PartialOrd<ImperScopeNsId> for usize
sourcefn partial_cmp(&self, other: &ImperScopeNsId) -> Option<Ordering>
fn partial_cmp(&self, other: &ImperScopeNsId) -> 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 ImperScopeNsId
impl PartialOrd<usize> for ImperScopeNsId
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 ImperScopeNsId
impl Rem<usize> for ImperScopeNsId
sourceimpl Sub<ImperScopeNsId> for ImperScopeNsId
impl Sub<ImperScopeNsId> for ImperScopeNsId
type Output = ImperScopeNsId
type Output = ImperScopeNsId
The resulting type after applying the -
operator.
sourcefn sub(self, other: ImperScopeNsId) -> ImperScopeNsId
fn sub(self, other: ImperScopeNsId) -> ImperScopeNsId
Performs the -
operation. Read more
sourceimpl Sub<ImperScopeNsId> for usize
impl Sub<ImperScopeNsId> for usize
type Output = ImperScopeNsId
type Output = ImperScopeNsId
The resulting type after applying the -
operator.
sourcefn sub(self, other: ImperScopeNsId) -> ImperScopeNsId
fn sub(self, other: ImperScopeNsId) -> ImperScopeNsId
Performs the -
operation. Read more
sourceimpl Sub<usize> for ImperScopeNsId
impl Sub<usize> for ImperScopeNsId
sourceimpl SubAssign<ImperScopeNsId> for ImperScopeNsId
impl SubAssign<ImperScopeNsId> for ImperScopeNsId
sourcefn sub_assign(&mut self, other: ImperScopeNsId)
fn sub_assign(&mut self, other: ImperScopeNsId)
Performs the -=
operation. Read more
sourceimpl SubAssign<usize> for ImperScopeNsId
impl SubAssign<usize> for ImperScopeNsId
sourcefn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the -=
operation. Read more
impl Copy for ImperScopeNsId
impl Eq for ImperScopeNsId
impl StructuralEq for ImperScopeNsId
impl StructuralPartialEq for ImperScopeNsId
Auto Trait Implementations
impl RefUnwindSafe for ImperScopeNsId
impl Send for ImperScopeNsId
impl Sync for ImperScopeNsId
impl Unpin for ImperScopeNsId
impl UnwindSafe for ImperScopeNsId
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