pub struct RuleContext<'a> {
pub graph: &'a Graph,
pub root: &'a Path,
pub config: &'a Config,
pub lockfile: Option<&'a Lockfile>,
}Expand description
Context passed to every rule, providing access to the graph, filesystem root, config, and optional lockfile.
See docs/rules for details.
Fields§
§graph: &'a Graph§root: &'a Path§config: &'a Config§lockfile: Option<&'a Lockfile>Auto Trait Implementations§
impl<'a> Freeze for RuleContext<'a>
impl<'a> RefUnwindSafe for RuleContext<'a>
impl<'a> Send for RuleContext<'a>
impl<'a> Sync for RuleContext<'a>
impl<'a> Unpin for RuleContext<'a>
impl<'a> UnsafeUnpin for RuleContext<'a>
impl<'a> UnwindSafe for RuleContext<'a>
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