pub enum Origin {
BuiltIn,
BuiltInFor(String),
Line(usize),
}Expand description
Where a value of a Resolution came from: the rule that set it, by its
Source and, for a built-in rule that does not match every process,
its matchers.
Variants§
BuiltIn
A built-in rule that matches every process.
BuiltInFor(String)
A built-in rule for the processes its matchers (see
Rule::matchers) describe.
Line(usize)
Line n of ENV_VAR.
Implementations§
Source§impl Origin
impl Origin
Sourcepub fn of(source: Source, rule: &Rule) -> Self
pub fn of(source: Source, rule: &Rule) -> Self
Where the values of rule come from, a rule of a table with the
source source.
Sourcepub const fn env_is_default(&self) -> bool
pub const fn env_is_default(&self) -> bool
Whether the env entries of a rule from here are defaults, which
leave a variable the process already has alone: those of a built-in
rule that matches every process (see Rule::env).
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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