[−][src]Struct metrix::instruments::LabelFilter
Methods
impl<L> LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
pub fn new(label: L) -> Self
[src]
pub fn predicate<P>(p: P) -> Self where
P: Fn(&L) -> bool + Send + 'static,
[src]
P: Fn(&L) -> bool + Send + 'static,
pub fn accept_all() -> Self
[src]
pub fn accept_none() -> Self
[src]
pub fn accept_another(&mut self, label: L)
[src]
pub fn accepts(&self, label: &L) -> bool
[src]
Trait Implementations
impl<L> Default for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
impl<L> From<(L, L, L, L, L)> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
impl<L> From<(L, L, L, L)> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
impl<L> From<(L, L, L)> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
impl<L> From<(L, L)> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
impl<L> From<AcceptAllLabels> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
fn from(_v: AcceptAllLabels) -> Self
[src]
impl<L> From<AcceptNoLabel> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
fn from(_v: AcceptNoLabel) -> Self
[src]
impl<L> From<AcceptOneLabel<L>> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
fn from(v: AcceptOneLabel<L>) -> Self
[src]
impl<LL> From<L<LL>> for LabelFilter<LL> where
LL: Eq + Send + 'static,
[src]
LL: Eq + Send + 'static,
impl<L> From<L> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
impl<L, P> From<LP<P>> for LabelFilter<L> where
L: Eq + Send + 'static,
P: Fn(&L) -> bool + Send + 'static,
[src]
L: Eq + Send + 'static,
P: Fn(&L) -> bool + Send + 'static,
impl<L, P> From<LabelPredicate<P>> for LabelFilter<L> where
L: Eq + Send + 'static,
P: Fn(&L) -> bool + Send + 'static,
[src]
L: Eq + Send + 'static,
P: Fn(&L) -> bool + Send + 'static,
fn from(v: LabelPredicate<P>) -> Self
[src]
impl<L> From<Vec<L>> for LabelFilter<L> where
L: Eq + Send + 'static,
[src]
L: Eq + Send + 'static,
Auto Trait Implementations
impl<L> !RefUnwindSafe for LabelFilter<L>
impl<L> Send for LabelFilter<L> where
L: Send,
L: Send,
impl<L> !Sync for LabelFilter<L>
impl<L> Unpin for LabelFilter<L> where
L: Unpin,
L: Unpin,
impl<L> !UnwindSafe for LabelFilter<L>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,