pub trait SetDataset: Dataset { }
Expand description

Marker trait constraining the semantics of Dataset and MutableDataset.

It guarantees that (1) quads will never be returned / stored multiple times.

If the type also implements MutableDataset, it must also ensure that (2) the bool or usize values returned by MutableDataset methods accurately describe how many quads were actually added/removed.

Note to implementors

A type implementing both Dataset and MutableDataset, enforcing (1) but failing to enforce (2) must not implement this trait.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Quad> SetDataset for BTreeSet<T>

source§

impl<T: Quad, S> SetDataset for HashSet<T, S>

Implementors§