Struct syn::TypeReference
source · 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
.
Fields§
§and_token: And
§lifetime: Option<Lifetime>
§mutability: Option<Mut>
§elem: Box<Type>
Trait Implementations§
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.