Trait sophia_api::graph::SetGraph
source · pub trait SetGraph: Graph { }
Expand description
Marker trait constraining the semantics of
Graph
and MutableGraph
.
It guarantees that (1) triples will never be returned / stored multiple times.
If the type also implements MutableGraph
,
it must also ensure that
(2) the bool
or usize
values returned by MutableGraph
methods accurately describe how many triples were actually added/removed.
Note to implementors
A type implementing both Graph
and MutableGraph
,
enforcing (1) but failing to enforce (2)
must not implement this trait.
Object Safety§
This trait is not object safe.