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>) -> Self

Constructs a new Record from a ValueSet.

fn record(&self, visitor: &mut dyn Visit)

Records all the fields in this Record with the provided Visitor.

fn len(&self) -> usize

Returns the number of fields that would be visited from this Record when Record::record() is called

fn contains(&self, field: &Field) -> bool

Returns true if this Record contains a value for the given Field.

fn is_empty(&self) -> bool

Returns true if this Record contains 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) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Record<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses 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>