Struct syn::TypeReference [−][src]
pub struct TypeReference {
pub and_token: And,
pub lifetime: Option<Lifetime>,
pub mutability: Option<Mut>,
pub elem: Box<Type>,
}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.
Auto Trait Implementations
impl RefUnwindSafe for TypeReferenceimpl !Send for TypeReferenceimpl !Sync for TypeReferenceimpl Unpin for TypeReferenceimpl UnwindSafe for TypeReferenceBlanket Implementations
Mutably borrows from an owned value. Read more