[][src]Struct rnix::types::Pattern

pub struct Pattern(_);

Methods

impl Pattern[src]

pub fn entries(&self) -> impl Iterator<Item = PatEntry>[src]

Return an iterator over all pattern entries

pub fn ellipsis(&self) -> bool[src]

Returns true if this pattern is inexact (has an ellipsis, ...)

pub fn filter_entries<F>(&self, _callback: F) -> Root where
    F: FnMut(&PatEntry) -> bool
[src]

Returns a clone of the tree root but without entries where the callback function returns false { a, b, c } without b is { a, c }

Trait Implementations

impl TypedNode for Pattern[src]

impl Clone for Pattern[src]

Auto Trait Implementations

impl Unpin for Pattern

impl !Sync for Pattern

impl !Send for Pattern

impl !UnwindSafe for Pattern

impl !RefUnwindSafe for Pattern

Blanket Implementations

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.

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

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

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