pub type QuerySetDescriptor<'a> = QuerySetDescriptor<Label<'a>>;

Aliased Type§

struct QuerySetDescriptor<'a> {
    pub label: Option<Cow<'a, str>>,
    pub ty: QueryType,
    pub count: u32,
}

Fields§

§label: Option<Cow<'a, str>>

Debug label for the query set.

§ty: QueryType

Kind of query that this query set should contain.

§count: u32

Total count of queries the set contains. Must not be zero. Must not be greater than [QUERY_SET_MAX_QUERIES].

Implementations

source§

impl<L> QuerySetDescriptor<L>

source

pub fn map_label<'a, K>( &'a self, fun: impl FnOnce(&'a L) -> K ) -> QuerySetDescriptor<K>

Takes a closure and maps the label of the query set descriptor into another.

Trait Implementations

source§

impl<L> Debug for QuerySetDescriptor<L>
where L: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<L> Clone for QuerySetDescriptor<L>
where L: Clone,

source§

fn clone(&self) -> QuerySetDescriptor<L>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more