Struct netidx_netproto::glob::Glob

source ·
pub struct Glob { /* private fields */ }
Expand description

Unix style globs for matching paths in the resolver. All common unix globing features are supported.

  • ? matches any character except the path separator
  • * matches zero or more characters, but not the path separator
  • ** recursively matches containers. It’s only legal uses are //foo, /foo//bar, and /foo/bar/**, which match respectively, any path ending in foo, any path starting with /foo and ending in bar, and any path starting with /foo/bar.
  • {a, b}, matches a or b where a and b are glob patterns, {} can’t be nested however.
  • [ab], [!ab], matches respectively the char a or b, and any char but a or b.
  • any of the above metacharacters can be escaped with a , a literal \ may be produced with \.

e.g. /solar/{stats,settings}/* -> all leaf paths under /solar/stats or /solar/settings. /s*/s*/** -> any path who’s first two levels start with s. /**/? -> any path who’s final component is a single character /marketdata/{IBM,MSFT,AMZN}/last

Implementations§

returns true if the specified string contains any non escaped glob meta chars.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.