Struct slog::OwnedKeyValueList
[−]
[src]
pub struct OwnedKeyValueList { // some fields omitted }
Chain of OwnedKeyValue
-s of a Logger
and its ancestors
Methods
impl OwnedKeyValueList
[src]
fn new(values: Vec<OwnedKeyValue>, parent: Arc<OwnedKeyValueList>) -> Self
New OwnedKeyValue
with a parent
fn root(values: Vec<OwnedKeyValue>) -> Self
New OwnedKeyValue
without a parent (root)
fn parent(&self) -> &Option<Arc<OwnedKeyValueList>>
Get the parent element on the chain of values
fn values(&self) -> &Vec<OwnedKeyValue>
Get the top-node values
Since OwnedKeyValueList
is just a chain of Vec<OwnedKeyValue>
it's possible to iterate through it group-by-group.
fn iter(&self) -> OwnedKeyValueListIterator
Iterator over OwnedKeyValue
-s