Lines Matching refs:Lifetime
11 /// Lifetime names must conform to the following rules:
19 pub struct Lifetime {
24 impl Lifetime {
33 /// # use syn::Lifetime;
35 /// # fn f() -> Lifetime {
36 /// Lifetime::new("'a", Span::call_site())
55 Lifetime {
73 impl Display for Lifetime {
80 impl Clone for Lifetime {
82 Lifetime {
89 impl PartialEq for Lifetime {
90 fn eq(&self, other: &Lifetime) -> bool {
95 impl Eq for Lifetime {}
97 impl PartialOrd for Lifetime {
98 fn partial_cmp(&self, other: &Lifetime) -> Option<Ordering> {
103 impl Ord for Lifetime {
104 fn cmp(&self, other: &Lifetime) -> Ordering {
109 impl Hash for Lifetime {
119 pub fn Lifetime(marker: lookahead::TokenMarker) -> Lifetime {
130 impl Parse for Lifetime {
148 impl ToTokens for Lifetime {