Trait FromGraph

Source
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§

Source

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

Source§

fn from_graph(pv: BasicPropertyValue) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<BasicPropertyValue> for InstanceClause

Source§

fn from_graph(pv: BasicPropertyValue) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<BasicPropertyValue> for TermClause

Source§

fn from_graph(pv: BasicPropertyValue) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<BasicPropertyValue> for TypedefClause

Source§

fn from_graph(pv: BasicPropertyValue) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<DefinitionPropertyValue> for InstanceClause

Source§

fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<DefinitionPropertyValue> for TermClause

Source§

fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<DefinitionPropertyValue> for TypedefClause

Source§

fn from_graph(pv: DefinitionPropertyValue) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<Graph> for OboDoc

Source§

fn from_graph(graph: Graph) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<Meta> for Vec<InstanceClause>

Source§

fn from_graph(meta: Meta) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<Meta> for Vec<TermClause>

Source§

fn from_graph(meta: Meta) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<Meta> for Vec<TypedefClause>

Source§

fn from_graph(meta: Meta) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<Meta> for HeaderFrame

Source§

fn from_graph(meta: Meta) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<Node> for Option<EntityFrame>

Source§

fn from_graph(node: Node) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<SynonymPropertyValue> for Synonym

Source§

fn from_graph(pv: SynonymPropertyValue) -> Result<Self>

Available on crate feature obo only.
Source§

impl FromGraph<XrefPropertyValue> for Xref

Source§

fn from_graph(pv: XrefPropertyValue) -> Result<Self>

Available on crate feature obo only.

Implementors§