Struct AssocType
pub struct AssocType { pub ident: Ident, pub generics: Option<AngleBracketedGenericArguments>, pub eq_token: Eq, pub ty: Type }
A binding (equality constraint) on an associated type: the Item = u8
in Iterator<Item = u8>.
Fields
ident: Identgenerics: Option<AngleBracketedGenericArguments>eq_token: Eqty: Type
Trait Implementations
impl Clone for AssocType
fn clone(&self) -> Self
impl ToTokens for AssocType
fn to_tokens(&self, tokens: &mut TokenStream)
Auto Trait Implementations
impl !Send for AssocType
impl !Sync for AssocType
impl Freeze for AssocType
impl RefUnwindSafe for AssocType
impl Unpin for AssocType
impl UnsafeUnpin for AssocType
impl UnwindSafe for AssocType
Blanket Implementations
impl<T> Any for AssocType
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for AssocType
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for AssocType
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for AssocType
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for AssocType
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for AssocType
where
T: Spanned + ?Sized,
fn span(&self) -> Span
impl<T> ToOwned for AssocType
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for AssocType
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 AssocType
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for AssocType
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>