Struct Index
pub struct Index { pub index: u32, pub span: Span }
The index of an unnamed tuple struct field.
Fields
index: u32span: Span
Trait Implementations
impl Clone for Index
fn clone(&self) -> Self
impl Eq for Index
impl From<usize> for Index
fn from(index: usize) -> Index
impl Hash for Index
fn hash<H: Hasher>(&self, state: &mut H)
impl IdentFragment for Index
fn fmt(&self, formatter: &mut Formatter<'_>) -> Resultfn span(&self) -> Option<Span>
impl Parse for Index
fn parse(input: ParseStream<'_>) -> Result<Self>
impl PartialEq for Index
fn eq(&self, other: &Self) -> bool
impl ToTokens for Index
fn to_tokens(&self, tokens: &mut TokenStream)
Auto Trait Implementations
impl !Send for Index
impl !Sync for Index
impl Freeze for Index
impl RefUnwindSafe for Index
impl Unpin for Index
impl UnsafeUnpin for Index
impl UnwindSafe for Index
Blanket Implementations
impl<T> Any for Index
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Index
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Index
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Index
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Index
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for Index
where
T: Spanned + ?Sized,
fn span(&self) -> Span
impl<T> ToOwned for Index
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Index
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Index
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Index
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>