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