[−][src]Struct rustc_ap_rustc_target::abi::VariantIdx
Implementations
impl VariantIdx
[src]
pub const MAX_AS_U32: u32
[src]
pub const MAX: Self
[src]
pub fn from_usize(value: usize) -> Self
[src]
pub fn from_u32(value: u32) -> Self
[src]
pub unsafe fn from_u32_unchecked(value: u32) -> Self
[src]
pub fn index(self) -> usize
[src]
Extracts the value of this index as an integer.
pub fn as_u32(self) -> u32
[src]
Extracts the value of this index as a u32
.
pub fn as_usize(self) -> usize
[src]
Extracts the value of this index as a usize
.
Trait Implementations
impl Add<usize> for VariantIdx
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: usize) -> Self
[src]
impl Clone for VariantIdx
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VariantIdx
[src]
impl Debug for VariantIdx
[src]
impl<D: Decoder> Decodable<D> for VariantIdx
[src]
impl<E: Encoder> Encodable<E> for VariantIdx
[src]
impl Eq for VariantIdx
[src]
impl From<VariantIdx> for u32
[src]
fn from(v: VariantIdx) -> u32
[src]
impl From<VariantIdx> for usize
[src]
fn from(v: VariantIdx) -> usize
[src]
impl From<u32> for VariantIdx
[src]
impl From<usize> for VariantIdx
[src]
impl Hash for VariantIdx
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<__CTX> HashStable<__CTX> for VariantIdx where
__CTX: HashStableContext,
[src]
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
[src]
impl Idx for VariantIdx
[src]
fn new(value: usize) -> Self
[src]
fn index(self) -> usize
[src]
fn increment_by(&mut self, amount: usize)
[src]
fn plus(self, amount: usize) -> Self
[src]
impl Ord for VariantIdx
[src]
fn cmp(&self, other: &VariantIdx) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<VariantIdx> for VariantIdx
[src]
fn eq(&self, other: &VariantIdx) -> bool
[src]
fn ne(&self, other: &VariantIdx) -> bool
[src]
impl PartialOrd<VariantIdx> for VariantIdx
[src]
fn partial_cmp(&self, other: &VariantIdx) -> Option<Ordering>
[src]
fn lt(&self, other: &VariantIdx) -> bool
[src]
fn le(&self, other: &VariantIdx) -> bool
[src]
fn gt(&self, other: &VariantIdx) -> bool
[src]
fn ge(&self, other: &VariantIdx) -> bool
[src]
impl Step for VariantIdx
[src]
fn steps_between(start: &Self, end: &Self) -> Option<usize>
[src]
fn forward_checked(start: Self, u: usize) -> Option<Self>
[src]
fn backward_checked(start: Self, u: usize) -> Option<Self>
[src]
fn forward(start: Self, count: usize) -> Self
[src]
unsafe fn forward_unchecked(start: Self, count: usize) -> Self
[src]
fn backward(start: Self, count: usize) -> Self
[src]
unsafe fn backward_unchecked(start: Self, count: usize) -> Self
[src]
impl StructuralEq for VariantIdx
[src]
impl StructuralPartialEq for VariantIdx
[src]
Auto Trait Implementations
impl RefUnwindSafe for VariantIdx
impl Send for VariantIdx
impl Sync for VariantIdx
impl Unpin for VariantIdx
impl UnwindSafe for VariantIdx
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeResult<T> for T
[src]
type Error = !
fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T
[src]
fn to_result(Self) -> Result<T, <T as MaybeResult<T>>::Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,