Struct BitmaskPattern
pub struct BitmaskPattern { /* private fields */ }Expand description
Bitmask representation of a pattern
Implementations§
§impl BitmaskPattern
impl BitmaskPattern
pub fn new(pattern: &str) -> Option<BitmaskPattern>
pub fn new(pattern: &str) -> Option<BitmaskPattern>
Create a new bitmask pattern
pub fn original_pattern(&self) -> &str
pub fn original_pattern(&self) -> &str
Get the original pattern string
pub fn segment_count(&self) -> usize
pub fn segment_count(&self) -> usize
Get the number of segments
pub fn wildcard_count(&self) -> usize
pub fn wildcard_count(&self) -> usize
Get the number of wildcards
Trait Implementations§
§impl Clone for BitmaskPattern
impl Clone for BitmaskPattern
§fn clone(&self) -> BitmaskPattern
fn clone(&self) -> BitmaskPattern
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 moreAuto Trait Implementations§
impl Freeze for BitmaskPattern
impl RefUnwindSafe for BitmaskPattern
impl Send for BitmaskPattern
impl Sync for BitmaskPattern
impl Unpin for BitmaskPattern
impl UnwindSafe for BitmaskPattern
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