pub struct PhantomConfig {
pub stop_words: HashSet<String>,
pub max_warnings: usize,
pub min_word_length: usize,
pub use_heuristic_detection: bool,
}Expand description
Configuration for phantom memory detection.
Fields§
§stop_words: HashSet<String>Words to skip when detecting capitalized entity references.
max_warnings: usizeMaximum number of warnings to include in formatted output.
min_word_length: usizeMinimum word length for technical term detection.
use_heuristic_detection: boolWhether to use heuristic (capitalized word) detection as a fallback.
Default true for backward compatibility; set to false to rely
solely on the explicit entity registry.
Trait Implementations§
Source§impl Clone for PhantomConfig
impl Clone for PhantomConfig
Source§fn clone(&self) -> PhantomConfig
fn clone(&self) -> PhantomConfig
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 PhantomConfig
impl Debug for PhantomConfig
Auto Trait Implementations§
impl Freeze for PhantomConfig
impl RefUnwindSafe for PhantomConfig
impl Send for PhantomConfig
impl Sync for PhantomConfig
impl Unpin for PhantomConfig
impl UnsafeUnpin for PhantomConfig
impl UnwindSafe for PhantomConfig
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