#[repr(transparent)]pub struct TargetGroupId {
_raw: usize,
}Fields§
§_raw: usizeImplementations§
Source§impl TargetGroupId
impl TargetGroupId
Sourcepub const MAX_INDEX: usize
pub const MAX_INDEX: usize
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
pub const CHECKS_MAX_INDEX: bool
Does this index type assert if asked to construct an index larger than MAX_INDEX?
const _ENSURE_RAW_IS_UNSIGNED: [(); 0]
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: usize) -> Self
pub const fn from_raw_unchecked(raw: usize) -> 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<TargetGroupId> for usize
impl Add<TargetGroupId> for usize
Source§type Output = TargetGroupId
type Output = TargetGroupId
The resulting type after applying the
+ operator.Source§fn add(self, other: TargetGroupId) -> TargetGroupId
fn add(self, other: TargetGroupId) -> TargetGroupId
Performs the
+ operation. Read moreSource§impl Add<usize> for TargetGroupId
impl Add<usize> for TargetGroupId
Source§impl Add for TargetGroupId
impl Add for TargetGroupId
Source§type Output = TargetGroupId
type Output = TargetGroupId
The resulting type after applying the
+ operator.Source§fn add(self, other: TargetGroupId) -> TargetGroupId
fn add(self, other: TargetGroupId) -> TargetGroupId
Performs the
+ operation. Read moreSource§impl AddAssign<usize> for TargetGroupId
impl AddAssign<usize> for TargetGroupId
Source§fn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the
+= operation. Read moreSource§impl AddAssign for TargetGroupId
impl AddAssign for TargetGroupId
Source§fn add_assign(&mut self, other: TargetGroupId)
fn add_assign(&mut self, other: TargetGroupId)
Performs the
+= operation. Read moreSource§impl Clone for TargetGroupId
impl Clone for TargetGroupId
Source§fn clone(&self) -> TargetGroupId
fn clone(&self) -> TargetGroupId
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 TargetGroupId
impl Debug for TargetGroupId
Source§impl Default for TargetGroupId
impl Default for TargetGroupId
Source§fn default() -> TargetGroupId
fn default() -> TargetGroupId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetGroupId
impl<'de> Deserialize<'de> for TargetGroupId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de, State: ?Sized> DeserializeState<'de, State> for TargetGroupId
impl<'de, State: ?Sized> DeserializeState<'de, State> for TargetGroupId
fn deserialize_state<D: Deserializer<'de>>( _state: &State, deserializer: D, ) -> Result<Self, D::Error>
Source§impl Display for TargetGroupId
impl Display for TargetGroupId
Source§impl<'s, V> Drive<'s, V> for TargetGroupIdwhere
V: Visitor,
impl<'s, V> Drive<'s, V> for TargetGroupIdwhere
V: Visitor,
Source§fn drive_inner(&'s self, visitor: &mut V) -> ControlFlow<V::Break>
fn drive_inner(&'s self, visitor: &mut V) -> ControlFlow<V::Break>
Call
v.visit() on the immediate contents of self.Source§impl<'s, V> DriveMut<'s, V> for TargetGroupIdwhere
V: Visitor,
impl<'s, V> DriveMut<'s, V> for TargetGroupIdwhere
V: Visitor,
Source§fn drive_inner_mut(&'s mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn drive_inner_mut(&'s mut self, visitor: &mut V) -> ControlFlow<V::Break>
Call
v.visit() on the immediate contents of self.Source§impl From<TargetGroupId> for usize
impl From<TargetGroupId> for usize
Source§fn from(v: TargetGroupId) -> usize
fn from(v: TargetGroupId) -> usize
Converts to this type from the input type.
Source§impl From<usize> for TargetGroupId
impl From<usize> for TargetGroupId
Source§impl Hash for TargetGroupId
impl Hash for TargetGroupId
Source§impl Idx for TargetGroupId
impl Idx for TargetGroupId
Source§impl Ord for TargetGroupId
impl Ord for TargetGroupId
Source§fn cmp(&self, other: &TargetGroupId) -> Ordering
fn cmp(&self, other: &TargetGroupId) -> 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<TargetGroupId> for usize
impl PartialEq<TargetGroupId> for usize
Source§impl PartialEq<usize> for TargetGroupId
impl PartialEq<usize> for TargetGroupId
Source§impl PartialEq for TargetGroupId
impl PartialEq for TargetGroupId
Source§impl PartialOrd<TargetGroupId> for usize
impl PartialOrd<TargetGroupId> for usize
Source§impl PartialOrd<usize> for TargetGroupId
impl PartialOrd<usize> for TargetGroupId
Source§impl PartialOrd for TargetGroupId
impl PartialOrd for TargetGroupId
Source§impl Rem<usize> for TargetGroupId
impl Rem<usize> for TargetGroupId
Source§impl Serialize for TargetGroupId
impl Serialize for TargetGroupId
Source§impl<State: ?Sized> SerializeState<State> for TargetGroupId
impl<State: ?Sized> SerializeState<State> for TargetGroupId
fn serialize_state<S: Serializer>( &self, _state: &State, serializer: S, ) -> Result<S::Ok, S::Error>
Source§impl Sub<TargetGroupId> for usize
impl Sub<TargetGroupId> for usize
Source§type Output = TargetGroupId
type Output = TargetGroupId
The resulting type after applying the
- operator.Source§fn sub(self, other: TargetGroupId) -> TargetGroupId
fn sub(self, other: TargetGroupId) -> TargetGroupId
Performs the
- operation. Read moreSource§impl Sub<usize> for TargetGroupId
impl Sub<usize> for TargetGroupId
Source§impl Sub for TargetGroupId
impl Sub for TargetGroupId
Source§type Output = TargetGroupId
type Output = TargetGroupId
The resulting type after applying the
- operator.Source§fn sub(self, other: TargetGroupId) -> TargetGroupId
fn sub(self, other: TargetGroupId) -> TargetGroupId
Performs the
- operation. Read moreSource§impl SubAssign<usize> for TargetGroupId
impl SubAssign<usize> for TargetGroupId
Source§fn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the
-= operation. Read moreSource§impl SubAssign for TargetGroupId
impl SubAssign for TargetGroupId
Source§fn sub_assign(&mut self, other: TargetGroupId)
fn sub_assign(&mut self, other: TargetGroupId)
Performs the
-= operation. Read moreimpl Copy for TargetGroupId
impl Eq for TargetGroupId
impl StructuralPartialEq for TargetGroupId
Auto Trait Implementations§
impl Freeze for TargetGroupId
impl RefUnwindSafe for TargetGroupId
impl Send for TargetGroupId
impl Sync for TargetGroupId
impl Unpin for TargetGroupId
impl UnwindSafe for TargetGroupId
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<I, T> IdxSliceIndex<I, T> for Iwhere
I: Idx,
impl<I, T> IdxSliceIndex<I, T> for Iwhere
I: Idx,
type Output = T
fn get( self, slice: &IndexSlice<I, [T]>, ) -> Option<&<I as IdxSliceIndex<I, T>>::Output>
fn get_mut( self, slice: &mut IndexSlice<I, [T]>, ) -> Option<&mut <I as IdxSliceIndex<I, T>>::Output>
fn index( self, slice: &IndexSlice<I, [T]>, ) -> &<I as IdxSliceIndex<I, T>>::Output
fn index_mut( self, slice: &mut IndexSlice<I, [T]>, ) -> &mut <I as IdxSliceIndex<I, T>>::Output
§impl<T> Indentable for Twhere
T: Display,
impl<T> Indentable for Twhere
T: Display,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more