Struct devise::syn::LifetimeDef
source · pub struct LifetimeDef {
pub attrs: Vec<Attribute, Global>,
pub lifetime: Lifetime,
pub colon_token: Option<Colon>,
pub bounds: Punctuated<Lifetime, Add>,
}
Expand description
A lifetime definition: 'a: 'b + 'c + 'd
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Fields§
§attrs: Vec<Attribute, Global>
§lifetime: Lifetime
§colon_token: Option<Colon>
§bounds: Punctuated<Lifetime, Add>
Implementations§
source§impl LifetimeDef
impl LifetimeDef
pub fn new(lifetime: Lifetime) -> LifetimeDef
Trait Implementations§
source§impl Clone for LifetimeDef
impl Clone for LifetimeDef
source§fn clone(&self) -> LifetimeDef
fn clone(&self) -> LifetimeDef
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 LifetimeDef
impl Debug for LifetimeDef
source§impl From<LifetimeDef> for GenericParam
impl From<LifetimeDef> for GenericParam
source§fn from(e: LifetimeDef) -> GenericParam
fn from(e: LifetimeDef) -> GenericParam
Converts to this type from the input type.