Skip to main content

Counted

Trait Counted 

Source
pub trait Counted {
    // Required method
    fn quantities(&self) -> Quantities;
}
Expand description

A counted item.

An item may represent multiple categories with different counts at once.

Required Methods§

Source

fn quantities(&self) -> Quantities

Returns the contained item quantities.

Implementation are expected to be pure.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Counted for ()

Source§

impl Counted for (DataCategory, usize)

Source§

impl Counted for Annotated<Span>

Source§

impl Counted for Outcomes

Available on crate feature processing only.
Source§

impl Counted for SessionAggregateItem

Source§

impl Counted for SessionAggregates

Source§

impl Counted for SessionUpdate

Source§

impl Counted for TraceItem

Available on crate feature processing only.
Source§

impl<L, R> Counted for Either<L, R>
where L: Counted, R: Counted,

Source§

impl<T: Counted, S: Counted> Counted for (T, S)

Source§

impl<T: Counted, const N: usize> Counted for SmallVec<[T; N]>

Source§

impl<T: Counted> Counted for Option<T>

Source§

impl<T: Counted> Counted for Vec<T>

Source§

impl<T: Counted> Counted for [T]

Source§

impl<T> Counted for &T
where T: Counted,

Source§

impl<T> Counted for Box<T>
where T: Counted,

Source§

impl<const N: usize> Counted for [(DataCategory, usize); N]

Implementors§