agde::resource

Struct Matcher

source
pub struct Matcher { /* private fields */ }
Expand description

Matches resources.

If no Self::includes are given, all but the Self::exclude will be matched. Simmilaraly, if no excludes are given, all but the includes will be rejected.

Implementations§

source§

impl Matcher

source

pub fn new() -> Matcher

Matches no resource.

source

pub fn all() -> Self

Match all.

source

pub fn set_include(self, include: Matches) -> Self

Set the included matches.

See Self for more info.