pub trait HasMetadata {
    fn metadata(&self) -> &SerdeAnyMap;
    fn metadata_mut(&mut self) -> &mut SerdeAnyMap;

    fn add_metadata<M>(&mut self, meta: M)
    where
        M: SerdeAny
, { ... } fn has_metadata<M>(&self) -> bool
    where
        M: SerdeAny
, { ... } }
Expand description

Trait for elements offering metadata

Required Methods

A map, storing all metadata

A map, storing all metadata (mutable)

Provided Methods

Add a metadata to the metadata map

Check for a metadata

Implementors