pub enum PubmedId {
Pmid(Digits),
Pmcid(Digits),
}Expand description
A PubMed identifier.
Variants§
Implementations§
Source§impl PubmedId
impl PubmedId
Sourcepub fn parse(input: &str) -> Option<Self>
pub fn parse(input: &str) -> Option<Self>
Parse pmid:9659853, PMID: 9659853, pmcid:PMC3531190,
PMC3531190, or a pubmed.ncbi.nlm.nih.gov/<pmid> /
…/pmc/articles/PMC<id> URL. Bare digits are not a PMID: they are too
easily something else.
Trait Implementations§
impl Eq for PubmedId
impl StructuralPartialEq for PubmedId
Auto Trait Implementations§
impl Freeze for PubmedId
impl RefUnwindSafe for PubmedId
impl Send for PubmedId
impl Sync for PubmedId
impl Unpin for PubmedId
impl UnsafeUnpin for PubmedId
impl UnwindSafe for PubmedId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more