parent
32b2ef7add
commit
75acee2bde
3 changed files with 94 additions and 27 deletions
|
@ -339,6 +339,14 @@ impl Item {
|
|||
_ => String::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn stable_since(&self) -> Option<&str> {
|
||||
if let Some(ref s) = self.stability {
|
||||
return Some(&s.since[..]);
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue