pub struct NamedDirective {
directive: Directive,
name: &'static str,
error_message: Option<&'static str>,
}Fields§
§directive: Directive§name: &'static str§error_message: Option<&'static str>Implementations§
Source§impl NamedDirective
impl NamedDirective
pub fn check_usage(&self, check: &mut RunningCheck, file: &Path)
fn create_child(&self, new: Self, check: &mut RunningCheck, file: &Path) -> Self
pub fn is_ignore_and_defuse(&self) -> bool
pub fn take(&mut self) -> Self
Sourcepub fn check(&self) -> Result<(), ()>
pub fn check(&self) -> Result<(), ()>
Check whether we should error on this directive, or whether it was ignored.
Sourcepub fn force_discard_unsused_ignore(&self)
pub fn force_discard_unsused_ignore(&self)
Explicitly discard the fact that this directive may be ignored unnecessary.
Trait Implementations§
Source§impl Debug for NamedDirective
impl Debug for NamedDirective
Source§impl Drop for NamedDirective
impl Drop for NamedDirective
Auto Trait Implementations§
impl !RefUnwindSafe for NamedDirective
impl !Send for NamedDirective
impl !Sync for NamedDirective
impl !UnwindSafe for NamedDirective
impl Freeze for NamedDirective
impl Unpin for NamedDirective
impl UnsafeUnpin for NamedDirective
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
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes