Struct devise::syn::TypeReference
source · pub struct TypeReference {
pub and_token: And,
pub lifetime: Option<Lifetime>,
pub mutability: Option<Mut>,
pub elem: Box<Type, Global>,
}
Expand description
A reference type: &'a T
or &'a mut T
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Fields§
§and_token: And
§lifetime: Option<Lifetime>
§mutability: Option<Mut>
§elem: Box<Type, Global>
Trait Implementations§
source§impl Clone for TypeReference
impl Clone for TypeReference
source§fn clone(&self) -> TypeReference
fn clone(&self) -> TypeReference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TypeReference
impl Debug for TypeReference
source§impl From<TypeReference> for Type
impl From<TypeReference> for Type
source§fn from(e: TypeReference) -> Type
fn from(e: TypeReference) -> Type
Converts to this type from the input type.