pub trait FromGraph<T>: Sized {
// Required method
fn from_graph(source: T) -> Result<Self>;
}
Expand description
Trait to convert an OBO graph element into an OBO syntax node.
Required Methods§
fn from_graph(source: T) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl FromGraph<BasicPropertyValue> for HeaderClause
impl FromGraph<BasicPropertyValue> for HeaderClause
Source§fn from_graph(pv: BasicPropertyValue) -> Result<Self>
fn from_graph(pv: BasicPropertyValue) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<BasicPropertyValue> for InstanceClause
impl FromGraph<BasicPropertyValue> for InstanceClause
Source§fn from_graph(pv: BasicPropertyValue) -> Result<Self>
fn from_graph(pv: BasicPropertyValue) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<BasicPropertyValue> for TermClause
impl FromGraph<BasicPropertyValue> for TermClause
Source§fn from_graph(pv: BasicPropertyValue) -> Result<Self>
fn from_graph(pv: BasicPropertyValue) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<BasicPropertyValue> for TypedefClause
impl FromGraph<BasicPropertyValue> for TypedefClause
Source§fn from_graph(pv: BasicPropertyValue) -> Result<Self>
fn from_graph(pv: BasicPropertyValue) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<DefinitionPropertyValue> for InstanceClause
impl FromGraph<DefinitionPropertyValue> for InstanceClause
Source§fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>
fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<DefinitionPropertyValue> for TermClause
impl FromGraph<DefinitionPropertyValue> for TermClause
Source§fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>
fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<DefinitionPropertyValue> for TypedefClause
impl FromGraph<DefinitionPropertyValue> for TypedefClause
Source§fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>
fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<Graph> for OboDoc
impl FromGraph<Graph> for OboDoc
Source§fn from_graph(graph: Graph) -> Result<Self>
fn from_graph(graph: Graph) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<Meta> for Vec<InstanceClause>
impl FromGraph<Meta> for Vec<InstanceClause>
Source§fn from_graph(meta: Meta) -> Result<Self>
fn from_graph(meta: Meta) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<Meta> for Vec<TermClause>
impl FromGraph<Meta> for Vec<TermClause>
Source§fn from_graph(meta: Meta) -> Result<Self>
fn from_graph(meta: Meta) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<Meta> for Vec<TypedefClause>
impl FromGraph<Meta> for Vec<TypedefClause>
Source§fn from_graph(meta: Meta) -> Result<Self>
fn from_graph(meta: Meta) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<Meta> for HeaderFrame
impl FromGraph<Meta> for HeaderFrame
Source§fn from_graph(meta: Meta) -> Result<Self>
fn from_graph(meta: Meta) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<Node> for Option<EntityFrame>
impl FromGraph<Node> for Option<EntityFrame>
Source§fn from_graph(node: Node) -> Result<Self>
fn from_graph(node: Node) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<SynonymPropertyValue> for Synonym
impl FromGraph<SynonymPropertyValue> for Synonym
Source§fn from_graph(pv: SynonymPropertyValue) -> Result<Self>
fn from_graph(pv: SynonymPropertyValue) -> Result<Self>
Available on crate feature
obo
only.Source§impl FromGraph<XrefPropertyValue> for Xref
impl FromGraph<XrefPropertyValue> for Xref
Source§fn from_graph(pv: XrefPropertyValue) -> Result<Self>
fn from_graph(pv: XrefPropertyValue) -> Result<Self>
Available on crate feature
obo
only.