// TODO: Document pattern syntax in the crate documentation and refer to it
//       here.
/// Constructs a [`Glob`] from a glob expression.
///
/// A glob expression is UTF-8 encoded text that resembles a Unix path
/// consisting of nominal components delimited by separators and patterns
/// that can be matched against native paths.
///
/// # Errors
///
/// Returns an error if the glob expression fails to build. See
/// [`BuildError`].
///
/// [`Glob`]: crate::Glob
/// [`BuildError`]: crate::BuildError
Document pattern syntax in the crate documentation and refer to it
here.
Constructs a [`Glob`] from a glob expression.

A glob expression is UTF-8 encoded text that resembles a Unix path
consisting of nominal components delimited by separators and patterns
that can be matched against native paths.
Document pattern syntax in the crate documentation and refer to it here . Constructs a [ ` Glob ` ] from a glob expression . A glob expression is UTF - 8 encoded text that resembles a Unix path consisting of nominal components delimited by separators and patterns that can be matched against native paths .
pub fn new(expression: &'t str) -> Result<Self, BuildError<'t>> {
        let tokenized = parse_and_check(expression)?;
        let regex = Glob::compile(tokenized.tokens())?;
        Ok(Glob { tokenized, regex })
    }
pub fn new ( expression : & ' t str ) -> Result < Self , BuildError < ' t > > { let tokenized = parse_and_check ( expression ) ? ; let regex = Glob :: compile ( tokenized . tokens ( ) ) ? ; Ok ( Glob { tokenized , regex } ) }
TODO: Document pattern syntax in the crate documentation and refer to it
here.
TODO : Document pattern syntax in the crate documentation and refer to it here .
expression
&'t str
errors
Returns an error if the glob expression fails to build. See
[`BuildError`].

[`Glob`]: crate::Glob
[`BuildError`]: crate::BuildError
Returns an error if the glob expression fails to build . See [ ` BuildError ` ] . [ ` Glob ` ] : crate :: Glob [ ` BuildError ` ] : crate :: BuildError