Struct fastobo::visit::IdDecompactor
source · pub struct IdDecompactor { /* private fields */ }
Expand description
A visitor that will decompact identifiers in an OBO document.
Usage
The decompactor will follow the rules from the OBO specification:
- if the document declares an IDSpace prefix
p
that maps to an Urlu
, Prefixed identifiers{p}:{id}
will be replaced by URLs identifiers{u}{id}
. - if the document does not declare an IDSpace
p'
, Prefixed identifiers{p}:{id}
with be replaced by URLs identifiershttp://purl.obolibrary.org/obo/{p'}_{id}
.
See also
- IdCompactor that does the opposite.
Implementations§
source§impl IdDecompactor
impl IdDecompactor
Trait Implementations§
source§impl Clone for IdDecompactor
impl Clone for IdDecompactor
source§fn clone(&self) -> IdDecompactor
fn clone(&self) -> IdDecompactor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IdDecompactor
impl Debug for IdDecompactor
source§impl Default for IdDecompactor
impl Default for IdDecompactor
source§fn default() -> IdDecompactor
fn default() -> IdDecompactor
Returns the “default value” for a type. Read more
source§impl VisitMut for IdDecompactor
impl VisitMut for IdDecompactor
fn visit_header_frame(&mut self, header: &mut HeaderFrame)
fn visit_ident(&mut self, id: &mut Ident)
fn visit_class_ident(&mut self, id: &mut ClassIdent)
fn visit_creation_date(&mut self, creation_date: &mut CreationDate)
fn visit_definition(&mut self, id: &mut Definition)
fn visit_doc(&mut self, doc: &mut OboDoc)
fn visit_entity_frame(&mut self, frame: &mut EntityFrame)
fn visit_header_clause(&mut self, clause: &mut HeaderClause)
fn visit_ident_prefix(&mut self, prefix: &mut IdentPrefix)
fn visit_import(&mut self, import: &mut Import)
fn visit_instance_clause(&mut self, clause: &mut InstanceClause)
fn visit_instance_frame(&mut self, frame: &mut InstanceFrame)
fn visit_instance_ident(&mut self, id: &mut InstanceIdent)
fn visit_iso_date(&mut self, date: &mut IsoDate)
fn visit_iso_datetime(&mut self, datetime: &mut IsoDateTime)
fn visit_iso_time(&mut self, time: &mut IsoTime)
fn visit_literal_property_value(&mut self, id: &mut LiteralPropertyValue)
fn visit_naive_date(&mut self, date: &mut NaiveDateTime)
fn visit_namespace_ident(&mut self, id: &mut NamespaceIdent)
fn visit_property_value(&mut self, pv: &mut PropertyValue)
fn visit_prefixed_ident(&mut self, id: &mut PrefixedIdent)
fn visit_quoted_string(&mut self, string: &mut QuotedString)
fn visit_relation_ident(&mut self, id: &mut RelationIdent)
fn visit_resource_property_value(&mut self, id: &mut ResourcePropertyValue)
fn visit_subset_ident(&mut self, id: &mut SubsetIdent)
fn visit_synonym(&mut self, syn: &mut Synonym)
fn visit_synonym_scope(&mut self, scope: &mut SynonymScope)
fn visit_synonymtype_ident(&mut self, id: &mut SynonymTypeIdent)
fn visit_term_clause(&mut self, clause: &mut TermClause)
fn visit_term_frame(&mut self, frame: &mut TermFrame)
fn visit_typedef_clause(&mut self, clause: &mut TypedefClause)
fn visit_typedef_frame(&mut self, frame: &mut TypedefFrame)
fn visit_unprefixed_ident(&mut self, string: &mut UnprefixedIdent)
fn visit_unquoted_string(&mut self, string: &mut UnquotedString)
fn visit_url(&mut self, url: &mut Url)
fn visit_xref(&mut self, xref: &mut Xref)
fn visit_xref_list(&mut self, xrefs: &mut XrefList)
Auto Trait Implementations§
impl RefUnwindSafe for IdDecompactor
impl Send for IdDecompactor
impl Sync for IdDecompactor
impl Unpin for IdDecompactor
impl UnwindSafe for IdDecompactor
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