[][src]Module fastobo::ast

Owned syntax tree for the OBO format version 1.4.

OboDoc is the struct acting as the root of the syntax tree. It can be created from a borrowed string slice with either FromStr::from_str or FromSlice::from_slice, from a file with fastobo::from_file, or from a buffered reader with fastobo::from_stream.

Structs

ClassId

A borrowed ClassIdent.

ClassIdent

A unique identifier for a class (i.e. a term).

Comment

An inline comment without semantic value.

HeaderFrame

The header frame, containing metadata about an OBO document.

IdLocal

A borrowed IdLocal.

IdPrefix

A borrowed IdentPrefix

IdentLocal

A local identifier, preceded by a prefix in prefixed IDs.

IdentPrefix

An identifier prefix, either canonical or non-canonical.

InstanceFrame

An instance frame, describing a particular individual.

InstanceId

A borrowed InstanceIdent

InstanceIdent

A unique identifier for an instance.

IsoDateTime

A comprehensive ISO-8601 datetime, as found in creation_date clauses.

Line

A line in an OBO file, possibly followed by qualifiers and a comment.

NaiveDateTime

A naive datetime, as found in header frames.

NamespaceId

A borrowed NamespaceIdent.

NamespaceIdent

An OBO namespace identifier.

OboDoc

A complete OBO document in format version 1.4.

PrefixedId

A borrowed PrefixedIdent.

PrefixedIdent

An identifier with a prefix.

Qualifier

A qualifier, possibly used as a trailing modifier.

QualifierList

A list containing zero or more Qualifiers.

QuotedStr

A borrowed QuotedString.

QuotedString

A string enclosed by quotes, used for definitions.

RelationId

A borrowed RelationIdent.

RelationIdent

A unique identifier for a typedef (i.e. a relation).

SubsetId

A borrowed SubsetIdent.

SubsetIdent

A unique identifier for a subset

Synonym

A synonym, denoting an alternative name for the embedding entity.

SynonymTypeId

A borrowed SynonymTypeIdent.

SynonymTypeIdent

A unique identifier for a synonym type.

TermFrame

A term frame, describing a class.

TypedefFrame

A typedef clause, describing a relationship.

UnprefixedId

A borrowed UnprefixedIdentifier.

UnprefixedIdent

An identifier without a prefix.

UnquotedStr

A borrowed UnquotedString.

UnquotedString

A string without delimiters, used as values in different clauses.

Url

A parsed URL record.

Xref

A database cross-reference definition.

XrefList

A list of containing zero or more Xrefs.

Enums

EntityFrame

An entity frame, either for a term, an instance, or a typedef.

HeaderClause

A clause appearing in a header frame.

Id

A borrowed Identifier.

Ident

An identifier, either prefixed, unprefixed, or a valid URL.

Import

A reference to another document to be imported.

InstanceClause

A clause appearing in an instance frame.

IsoTimezone

An ISO-8601 timezone.

PropVal

A borrowed PropertyValue.

PropertyValue

A clause value binding a property to a value in the relevant entity.

SynonymScope

A synonym scope specifier.

TermClause

A clause appearing in a term frame.

TypedefClause

A clause appearing in a typedef frame.

Traits

DateTime

A trait for common operations on OBO datetimes.

Type Definitions

Eol

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