Struct libinspire::RecID
[−]
[src]
pub struct RecID<'a> { pub id: &'a str, }
Fields
id: &'a str
Methods
impl<'a> RecID<'a>
[src]
Create RecID from &str
Returns a Result<Self, ()>
as this can fail.
In future I may also implement std::convert::TryFrom
, currently a nightly only
feature.
Examples
extern crate libinspire; libinspire::RecID::new("Bekenstein:1973ur");