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