Struct libinspire::RecID [] [src]

pub struct RecID<'a> {
    pub id: &'a str,
}

Fields

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");

[src]

Trait Implementations

impl<'a> Debug for RecID<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for RecID<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.