[][src]Struct streamson_lib::matcher::depth::Depth

pub struct Depth { /* fields omitted */ }

Based on actual path depth

Path is matched when path depth is higher or equal min and lower or equal max (optional)

Implementations

impl Depth[src]

pub fn new(min: usize, max: Option<usize>) -> Self[src]

Creates new depth matcher

Arguments

  • min - minimal depth (lower won't be matched)
  • max - maximal depth - optional (higher won't be matched)

Trait Implementations

impl Clone for Depth[src]

impl Debug for Depth[src]

impl Default for Depth[src]

impl FromStr for Depth[src]

type Err = Matcher

The associated error which can be returned from parsing.

impl MatchMaker for Depth[src]

Auto Trait Implementations

impl RefUnwindSafe for Depth

impl Send for Depth

impl Sync for Depth

impl Unpin for Depth

impl UnwindSafe for Depth

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.