Struct libdata::column::Headers
[−]
pub struct Headers(_);
A multi-set of tags.
This is similar to the Tags
type, but allows having multiple values of
each type (or even an empty slot in each type). This is what you'd get when you combine data
from multiple flows in additive manner.
However, values are deduplicated ‒ eg. there may be multiple remote IP addresses, but each one only in one instance.
Methods
impl Headers
[src]
fn new() -> Self
Creates a new empty Headers
.
fn insert_opt(&mut self, ident: Ident, value: Option<Value>) -> bool
Inserts an optional value into the set.
Returns false if it is already present. The contained value is not updated.
Panics
If Some(value)
is inserted and the ident doesn't match.
fn insert<V: Into<Value>>(&mut self, value: V) -> bool
Inserts another value.
If the value is already present, it is not updated and false
is returned instead.
fn insert_empty(&mut self, ident: Ident) -> bool
Inserts a hole of the given type.
Each type of column can contain a single None
value. This inserts the None
into the
given type. Returns false
if it was already present.
fn iter(&self) -> Iter<Ident, Header>
Iterates through the set by types.
Trait Implementations
impl Clone for Headers
[src]
fn clone(&self) -> Headers
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Headers
[src]
impl Default for Headers
[src]
impl Eq for Headers
[src]
impl PartialEq for Headers
[src]
fn eq(&self, __arg_0: &Headers) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Headers) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for Headers
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more