pub struct LintInput<'a> {
pub text: &'a str,
pub deployment: Option<&'a Deployment>,
pub windows: Option<&'a BTreeMap<String, u64>>,
pub block: Option<(&'a str, &'a Block)>,
}Expand description
What a linter is given: the policy’s text, and what else it has.
Fields§
§text: &'a str§deployment: Option<&'a Deployment>When given, the plan is derived, and its findings included.
windows: Option<&'a BTreeMap<String, u64>>The windows the deployment configures, by address; needs the deployment.
block: Option<(&'a str, &'a Block)>A router’s block, and the face it guards.
Trait Implementations§
impl<'a> Copy for LintInput<'a>
Auto Trait Implementations§
impl<'a> Forget for LintInput<'a>
impl<'a> Freeze for LintInput<'a>
impl<'a> Move for LintInput<'a>
impl<'a> RefUnwindSafe for LintInput<'a>
impl<'a> Send for LintInput<'a>
impl<'a> Sync for LintInput<'a>where
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<String>)>: Sync,
NodeRef<Owned, String, Vec<Vec<Res>>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<Vec<Res>>)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
NodeRef<Owned, String, BTreeSet<Fingerprint>, LeafOrInternal>: Sync,
BoxRaw<(String, BTreeSet<Fingerprint>)>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, u64, LeafOrInternal>: Sync,
BoxRaw<(String, u64)>: Sync,
impl<'a> Unpin for LintInput<'a>
impl<'a> UnsafeUnpin for LintInput<'a>where
&'a str: UnsafeUnpin,
&'a Deployment: UnsafeUnpin,
&'a BTreeMap<String, u64>: UnsafeUnpin,
&'a Block: UnsafeUnpin,
impl<'a> UnwindSafe for LintInput<'a>where
&'a str: UnwindSafe,
&'a Deployment: UnwindSafe,
&'a BTreeMap<String, u64>: UnwindSafe,
&'a Block: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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