pub struct OwnerFilter { /* private fields */ }Implementations§
Source§impl OwnerFilter
impl OwnerFilter
pub fn new(pattern: &str) -> Result<OwnerFilter, CodeownersError>
pub fn matches(&self, owner: &str) -> bool
pub fn matches_any(&self, owners: &[String]) -> bool
Trait Implementations§
Source§impl Clone for OwnerFilter
impl Clone for OwnerFilter
Auto Trait Implementations§
impl Forget for OwnerFilter
impl Freeze for OwnerFilterwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Token>: Freeze,
*const ArcInner<RegexI> is !null: Freeze,
PhantomData<ArcInner<RegexI>>: Freeze,
*const Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>> is !null: Freeze,
PhantomData<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Freeze,
impl Move for OwnerFilter
impl RefUnwindSafe for OwnerFilterwhere
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>: RefUnwindSafe,
impl Send for OwnerFilter
impl Sync for OwnerFilter
impl Unpin for OwnerFilter
impl UnsafeUnpin for OwnerFilterwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Token>: UnsafeUnpin,
*const ArcInner<RegexI> is !null: UnsafeUnpin,
PhantomData<ArcInner<RegexI>>: UnsafeUnpin,
*const Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>> is !null: UnsafeUnpin,
PhantomData<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: UnsafeUnpin,
impl UnwindSafe for OwnerFilterwhere
RawVecInner: UnwindSafe,
Arc<RegexI>: UnwindSafe,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: UnwindSafe,
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