Struct syn::TypeReference [−][src]
pub struct TypeReference {
pub and_token: And,
pub lifetime: Option<Lifetime>,
pub mutability: Option<Mut>,
pub elem: Box<Type>,
}This is supported on crate features
full or derive only.Expand description
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: Andlifetime: Option<Lifetime>mutability: Option<Mut>elem: Box<Type>Trait Implementations
Performs the conversion.
impl PartialEq<TypeReference> for TypeReference
This is supported on crate feature extra-traits only.
impl PartialEq<TypeReference> for TypeReference
This is supported on crate feature
extra-traits only.Auto Trait Implementations
impl RefUnwindSafe for TypeReference
impl !Send for TypeReference
impl !Sync for TypeReference
impl Unpin for TypeReference
impl UnwindSafe for TypeReference
Blanket Implementations
Mutably borrows from an owned value. Read more
