pub struct GlobPattern { /* private fields */ }Expand description
Shell pattern matching similar to golang’s path.Match.
§Further reading
See the goglob crate’s documentation for the appropriate syntax.
Implementations§
Source§impl GlobPattern
impl GlobPattern
Sourcepub fn new<S: AsRef<str>>(pattern: S) -> Result<Self>
pub fn new<S: AsRef<str>>(pattern: S) -> Result<Self>
Compile the given pattern into tokens at runtime, returning a GlobPattern
on success or an error if pattern is syntactically invalid.
§Further reading
See the goglob crate’s documentation for the appropriate syntax, as well as
[goglob::error::Error][crate:error:Error] for possible syntax errors.
Trait Implementations§
Source§impl Clone for GlobPattern
impl Clone for GlobPattern
Source§fn clone(&self) -> GlobPattern
fn clone(&self) -> GlobPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobPattern
impl Debug for GlobPattern
Source§impl PartialEq for GlobPattern
impl PartialEq for GlobPattern
impl Eq for GlobPattern
impl StructuralPartialEq for GlobPattern
Auto Trait Implementations§
impl Freeze for GlobPattern
impl RefUnwindSafe for GlobPattern
impl Send for GlobPattern
impl Sync for GlobPattern
impl Unpin for GlobPattern
impl UnwindSafe for GlobPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more