pub struct AllowRule<'a> { /* private fields */ }Expand description
A borrowed canonical field name and the breadth of its allow rule.
§Type Parameters
'a- Lifetime of the borrowed canonical field name.
Implementations§
Source§impl<'a> AllowRule<'a>
impl<'a> AllowRule<'a>
Sourcepub const fn matching(&self) -> FieldNameMatching
pub const fn matching(&self) -> FieldNameMatching
Returns the breadth of the allow rule.
§Returns
FieldNameMatching::Exact for an exact-only allow rule or
FieldNameMatching::ExactOrTokenSuffix for a suffix allow rule.
Trait Implementations§
impl<'a> Copy for AllowRule<'a>
impl<'a> Eq for AllowRule<'a>
impl<'a> StructuralPartialEq for AllowRule<'a>
Auto Trait Implementations§
impl<'a> Freeze for AllowRule<'a>
impl<'a> RefUnwindSafe for AllowRule<'a>
impl<'a> Send for AllowRule<'a>
impl<'a> Sync for AllowRule<'a>
impl<'a> Unpin for AllowRule<'a>
impl<'a> UnsafeUnpin for AllowRule<'a>
impl<'a> UnwindSafe for AllowRule<'a>
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