pub struct RawRule {
pub find: Find,
pub describe: &'static str,
pub importance: u8,
pub min_entropy: Option<f64>,
pub before_assert: Option<Assertion>,
pub after_assert: Option<Assertion>,
pub is_and_assert: bool,
pub check: Option<fn(&str, &str) -> bool>,
}Fields§
§find: Find§describe: &'static str§importance: u8§min_entropy: Option<f64>§before_assert: Option<Assertion>§after_assert: Option<Assertion>§is_and_assert: bool§check: Option<fn(&str, &str) -> bool>Implementations§
Auto Trait Implementations§
impl Freeze for RawRule
impl RefUnwindSafe for RawRule
impl Send for RawRule
impl Sync for RawRule
impl Unpin for RawRule
impl UnsafeUnpin for RawRule
impl UnwindSafe for RawRule
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more