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.
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.