pub struct RulesContext { /* private fields */ }Implementations§
Source§impl RulesContext
impl RulesContext
pub fn new() -> RulesContext
pub fn set_overwrite(&mut self, overwrite: bool)
pub fn overwrite(&self) -> bool
pub fn path_rules_mut( &mut self, ) -> Option<&mut LinkedHashMap<String, RuleConfig>>
pub fn path_rules(&self) -> Option<&LinkedHashMap<String, RuleConfig>>
pub fn break_triggered(&self) -> bool
pub fn set_break_triggered(&mut self, break_triggered: bool)
pub fn insert_path_rules(&mut self, insert: &LinkedHashMap<String, RuleConfig>)
pub fn append_path_rules(&mut self, append: &LinkedHashMap<String, RuleConfig>)
pub fn get_source_action<P: AsRef<Path>>(&self, path: P) -> RuleAction
Trait Implementations§
Source§impl Clone for RulesContext
impl Clone for RulesContext
Source§fn clone(&self) -> RulesContext
fn clone(&self) -> RulesContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RulesContext
impl Debug for RulesContext
Source§impl<'de> Deserialize<'de> for RulesContext
impl<'de> Deserialize<'de> for RulesContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RulesContext
impl RefUnwindSafe for RulesContext
impl Send for RulesContext
impl Sync for RulesContext
impl Unpin for RulesContext
impl UnwindSafe for RulesContext
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