[][src]Type Definition fastobo::ast::Eol

type Eol = Line<()>;

The optional part of a line, holding a qualifier list and a comment.

It can be used as a builder to create a fully-fledged Line.

Example

let line = Eol::with_comment(Comment::new("ENVO uses 8 digits identifiers"))
    .and_inner(ClassIdent::from_str("ENVO:00000001").unwrap());
let frame = TermFrame::new(line);
assert_eq!(frame.to_string(),
"[Term]
id: ENVO:00000001 ! ENVO uses 8 digits identifiers
");

Methods

impl Eol[src]

pub fn new() -> Self[src]

pub fn with_comment(comment: Comment) -> Self[src]

pub fn with_qualifiers(qualifiers: QualifierList) -> Self[src]

pub fn and_inner<T>(self, inner: T) -> Line<T>[src]

Trait Implementations

impl<'i> FromPair<'i> for Eol[src]

fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, Error>[src]

Create a new instance from a Pair.

impl From<Comment> for Eol[src]

impl From<QualifierList> for Eol[src]

impl Default for Eol[src]