pub struct ValueSet<'a> {
values: &'a [(&'a Field, Option<&'a (dyn Value + 'a)>)],
fields: &'a FieldSet,
}
Expand description
A set of fields and values for a span.
Fields§
§values: &'a [(&'a Field, Option<&'a (dyn Value + 'a)>)]
§fields: &'a FieldSet
Implementations§
source§impl<'a> ValueSet<'a>
impl<'a> ValueSet<'a>
sourcepub fn callsite(&self) -> Identifier
pub fn callsite(&self) -> Identifier
Returns an Identifier
that uniquely identifies the Callsite
defining the fields this ValueSet
refers to.
sourcepub fn record(&self, visitor: &mut dyn Visit)
pub fn record(&self, visitor: &mut dyn Visit)
Visits all the fields in this ValueSet
with the provided visitor.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the number of fields in this ValueSet
that would be visited
by a given visitor to the ValueSet::record()
method.