[−][src]Struct rustc_ap_rustc_ast::ast::AttrId
Methods
impl AttrId
[src]
pub const MAX_AS_U32: u32
[src]
pub const MAX: Self
[src]
pub const fn from_usize(value: usize) -> Self
[src]
pub const fn from_u32(value: u32) -> Self
[src]
pub const unsafe fn from_u32_unchecked(value: u32) -> Self
[src]
pub const fn index(self) -> usize
[src]
Extracts the value of this index as an integer.
pub const fn as_u32(self) -> u32
[src]
Extracts the value of this index as a u32
.
pub const fn as_usize(self) -> usize
[src]
Extracts the value of this index as a usize
.
Trait Implementations
impl Add<usize> for AttrId
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: usize) -> Self
[src]
impl Clone for AttrId
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AttrId
[src]
impl Debug for AttrId
[src]
impl Decodable for AttrId
[src]
impl Encodable for AttrId
[src]
impl Eq for AttrId
[src]
impl From<AttrId> for u32
[src]
impl From<AttrId> for usize
[src]
impl From<u32> for AttrId
[src]
impl From<usize> for AttrId
[src]
impl Hash for AttrId
[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 Idx for AttrId
[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 AttrId
[src]
fn cmp(&self, other: &AttrId) -> 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<AttrId> for AttrId
[src]
impl PartialOrd<AttrId> for AttrId
[src]
fn partial_cmp(&self, other: &AttrId) -> Option<Ordering>
[src]
fn lt(&self, other: &AttrId) -> bool
[src]
fn le(&self, other: &AttrId) -> bool
[src]
fn gt(&self, other: &AttrId) -> bool
[src]
fn ge(&self, other: &AttrId) -> bool
[src]
impl Step for AttrId
[src]
fn steps_between(start: &Self, end: &Self) -> Option<usize>
[src]
fn replace_one(&mut self) -> Self
[src]
fn replace_zero(&mut self) -> Self
[src]
fn add_one(&self) -> Self
[src]
fn sub_one(&self) -> Self
[src]
fn add_usize(&self, u: usize) -> Option<Self>
[src]
fn sub_usize(&self, u: usize) -> Option<Self>
[src]
impl StructuralEq for AttrId
[src]
impl StructuralPartialEq for AttrId
[src]
Auto Trait Implementations
impl RefUnwindSafe for AttrId
impl Send for AttrId
impl Sync for AttrId
impl Unpin for AttrId
impl UnwindSafe for AttrId
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<T> Decodable for T where
T: UseSpecializedDecodable,
[src]
T: UseSpecializedDecodable,
impl<T> Encodable for T where
T: UseSpecializedEncodable + ?Sized,
[src]
T: UseSpecializedEncodable + ?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> Same<T> for T
type Output = T
Should always be Self
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
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>,