Crate patmatch[][src]

A configurable pattern matching (also known as globbing) library.

The general use of this library is to compile Patterns, then use them. For example:

use patmatch::{Pattern, MatchOptions};
let pat = Pattern::compile("*.png", MatchOptions::ALL);
assert!(pat.matches("file.png"));
assert!(!pat.matches("file.jpeg"));

Re-exports

pub use options::*;

Modules

options

Options for configuring the pattern matching.

Structs

Pattern

A pattern to match strings against.

Enums

Chunk

A part of a Pattern. Used to configure a compiled Pattern.