Struct libdata::column::Tags []

pub struct Tags(_);

Tags of a single entity.

This represents a set of tags. However, the set contains at most one value of each type. This is well suited for things like the header information about flows, for example.

This data storage is cummulative ‒ it is not possible to remove tags (only to replace them).

Methods

impl Tags
[src]

Creates a new tag storage.

Inserts a value into the set.

If a value of that column type is already present, the old one is replaced and returned.

Checks if a tag of the given type is present.

Returns the tag value.

This looks up the value of the given type, if any is present.

Consumes other and inserts all its content into self.

If both self and other contain value of the same type, the one in self is overwritten and other wins.

Params

  • other: The other tag storage to incorporate into self.

Returns how many tags there are inside.

Checks if the storage is empty.

Iterates over the identities in the tags.

Trait Implementations

impl Clone for Tags
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Tags
[src]

Formats the value using the given formatter.

impl Default for Tags
[src]

Returns the "default value" for a type. Read more

impl Eq for Tags
[src]

impl PartialEq for Tags
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.