pub struct Lookups {
declared: Vec<(Applicability, Lookup)>,
}Expand description
Every lookup the policies a deployment has loaded declare, with the applicability of the policy that declared each.
Fields§
§declared: Vec<(Applicability, Lookup)>Implementations§
Source§impl Lookups
impl Lookups
Sourcepub fn of(
builtins: &[BuiltinPolicy],
startup: &HashMap<String, ParsedPolicy>,
operator: &HashMap<String, ParsedPolicy>,
) -> Self
pub fn of( builtins: &[BuiltinPolicy], startup: &HashMap<String, ParsedPolicy>, operator: &HashMap<String, ParsedPolicy>, ) -> Self
The lookups of every policy in one build of the tree: the built-ins,
the declarations supplied for the length of the run, and the ones
read from the operator’s records. The same three sources
crate::merge::build takes, so a tree and its lookups are built
from one view.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lookups
impl RefUnwindSafe for Lookups
impl Send for Lookups
impl Sync for Lookups
impl Unpin for Lookups
impl UnsafeUnpin for Lookups
impl UnwindSafe for Lookups
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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