pub struct HookFlags {
pub after_expression_analysis: bool,
pub after_statement_analysis: bool,
pub after_function_call_analysis: bool,
pub after_method_call_analysis: bool,
pub before_add_issue: bool,
pub after_codebase_populated: bool,
}Expand description
Which event hooks a plugin subscribes to. Sites only construct events and dispatch when at least one registered plugin set the matching flag, so an unset flag keeps that hook zero-cost.
Fields§
§after_expression_analysis: bool§after_statement_analysis: bool§after_function_call_analysis: bool§after_method_call_analysis: bool§before_add_issue: bool§after_codebase_populated: boolTrait Implementations§
impl Copy for HookFlags
impl Eq for HookFlags
impl StructuralPartialEq for HookFlags
Auto Trait Implementations§
impl Freeze for HookFlags
impl RefUnwindSafe for HookFlags
impl Send for HookFlags
impl Sync for HookFlags
impl Unpin for HookFlags
impl UnsafeUnpin for HookFlags
impl UnwindSafe for HookFlags
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.