pub struct ScopePattern { /* private fields */ }Implementations§
Source§impl ScopePattern
impl ScopePattern
pub fn parse(pattern: &str) -> Result<Self, ScopeError>
pub fn matches_scope(&self, scope: &str) -> bool
pub fn matches_raw(&self, scope: &str) -> bool
pub fn specificity(&self) -> usize
Trait Implementations§
Source§impl Clone for ScopePattern
impl Clone for ScopePattern
Source§fn clone(&self) -> ScopePattern
fn clone(&self) -> ScopePattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScopePattern
impl RefUnwindSafe for ScopePattern
impl Send for ScopePattern
impl Sync for ScopePattern
impl Unpin for ScopePattern
impl UnsafeUnpin for ScopePattern
impl UnwindSafe for ScopePattern
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