Struct Record
pub struct Record<'a> { /* private fields */ }
A set of fields recorded by a span.
Implementations
impl<'a> Record<'a>
fn new(values: &'a ValueSet<'a>) -> SelfConstructs a new
Recordfrom aValueSet.fn record(&self, visitor: &mut dyn Visit)Records all the fields in this
Recordwith the provided Visitor.fn len(&self) -> usizeReturns the number of fields that would be visited from this
RecordwhenRecord::record()is calledfn contains(&self, field: &Field) -> boolReturns
trueif thisRecordcontains a value for the givenField.fn is_empty(&self) -> boolReturns true if this
Recordcontains no values.
Trait Implementations
impl<'a> Debug for Record<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Record<'a>
impl<'a> !Send for Record<'a>
impl<'a> !Sync for Record<'a>
impl<'a> !UnwindSafe for Record<'a>
impl<'a> Freeze for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnsafeUnpin for Record<'a>
Blanket Implementations
impl<T> Any for Record<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Record<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Record<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Record<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Record<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Record<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Record<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>