[−][src]Struct streamson_lib::matcher::depth::Depth
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl MatchMaker for Depth
[src]
fn match_path(&self, path: &Path) -> bool
[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]
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,
pub fn borrow_mut(&mut self) -> &mut 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,