/// Clones any borrowed data into an owning instance.
///
/// # Examples
///
/// `Glob`s borrow data in the corresponding glob expression. To move a
/// `Glob` beyond the scope of a glob expression, clone the data with this
/// function.
///
/// ```rust
/// use wax::{BuildError, Glob};
///
/// fn local() -> Result<Glob<'static>, BuildError<'static>> {
///     let expression = String::from("**/*.txt");
///     Glob::new(&expression)
///         .map(Glob::into_owned)
///         .map_err(BuildError::into_owned)
/// }
/// ```
Clones any borrowed data into an owning instance.
Clones any borrowed data into an owning instance .
pub fn into_owned(self) -> Glob<'static> {
        let Glob { tokenized, regex } = self;
        Glob {
            tokenized: tokenized.into_owned(),
            regex,
        }
    }
pub fn into_owned ( self ) -> Glob < ' static > { let Glob { tokenized , regex } = self ; Glob { tokenized : tokenized . into_owned ( ) , regex , } }
Clones any borrowed data into an owning instance.
Clones any borrowed data into an owning instance .
self
examples
`Glob`s borrow data in the corresponding glob expression. To move a
`Glob` beyond the scope of a glob expression, clone the data with this
function.

```rust
use wax::{BuildError, Glob}.

fn local() -> Result, BuildError<'static>> {
let expression = String::from("**.txt");
Glob::new(&expression)
.map(Glob::into_owned)
.map_err(BuildError::into_owned)
}
```
` Glob ` s borrow data in the corresponding glob expression . To move a ` Glob ` beyond the scope of a glob expression clone the data with this function . ` ` ` rust use wax :: { BuildError Glob } . fn local () - > Result BuildError< ' static >> { let expression = String :: from ( " ** . txt " ) ; Glob :: new ( &expression ) . map ( Glob :: into_owned ) . map_err ( BuildError :: into_owned ) } ` ` `