Struct syn::TypeReference [−][src]
pub struct TypeReference { pub and_token: And, pub lifetime: Option<Lifetime>, pub mutability: Option<Mut>, pub elem: Box<Type>, }
A reference type: &'a T
or &'a mut T
.
This type is available only if Syn is built with the "derive"
or
"full"
feature.
Fields
and_token: And
lifetime: Option<Lifetime>
mutability: Option<Mut>
elem: Box<Type>
Trait Implementations
impl Clone for TypeReference
[src]
impl Clone for TypeReference
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<TypeReference> for Type
[src]
impl From<TypeReference> for Type
[src]fn from(e: TypeReference) -> Type
[src]
impl Hash for TypeReference
[src]
impl Hash for TypeReference
[src]impl Parse for TypeReference
[src]
impl Parse for TypeReference
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<TypeReference> for TypeReference
[src]
impl PartialEq<TypeReference> for TypeReference
[src]impl ToTokens for TypeReference
[src]
impl ToTokens for TypeReference
[src]