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.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]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TypeReference
[src]
impl Debug for TypeReference
[src]This is supported on crate feature
extra-traits
only.impl Eq for TypeReference
[src]
impl Eq for TypeReference
[src]This is supported on crate feature
extra-traits
only.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]This is supported on crate feature
extra-traits
only.impl Parse for TypeReference
[src]
impl Parse for TypeReference
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<TypeReference> for TypeReference
[src]
impl PartialEq<TypeReference> for TypeReference
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for TypeReference
[src]
impl ToTokens for TypeReference
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeReference
impl RefUnwindSafe for TypeReference
impl !Send for TypeReference
impl !Send for TypeReference
impl !Sync for TypeReference
impl !Sync for TypeReference
impl Unpin for TypeReference
impl Unpin for TypeReference
impl UnwindSafe for TypeReference
impl UnwindSafe for TypeReference