pub struct LeakerConfig {
pub allowed_paths: Vec<Path>,
pub self_ty_can_be_interned: bool,
}Expand description
Configuration for building a Leaker.
Fields§
§allowed_paths: Vec<Path>§self_ty_can_be_interned: boolImplementations§
Source§impl LeakerConfig
impl LeakerConfig
pub fn new() -> Self
Sourcepub fn allow_primitive(&mut self) -> &mut Self
pub fn allow_primitive(&mut self) -> &mut Self
Allow primitive types from ::core::primitive.
Sourcepub fn allow_std_prelude(&mut self) -> &mut Self
pub fn allow_std_prelude(&mut self) -> &mut Self
Allow items in the standard prelude (std::prelude::v1).
Sourcepub fn allow_crate(&mut self) -> &mut Self
pub fn allow_crate(&mut self) -> &mut Self
Allow paths starting with crate.
Trait Implementations§
Source§impl Clone for LeakerConfig
impl Clone for LeakerConfig
Source§fn clone(&self) -> LeakerConfig
fn clone(&self) -> LeakerConfig
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 LeakerConfig
impl Debug for LeakerConfig
Source§impl Default for LeakerConfig
impl Default for LeakerConfig
Source§impl Hash for LeakerConfig
impl Hash for LeakerConfig
Source§impl PartialEq for LeakerConfig
impl PartialEq for LeakerConfig
impl Eq for LeakerConfig
impl StructuralPartialEq for LeakerConfig
Auto Trait Implementations§
impl Freeze for LeakerConfig
impl RefUnwindSafe for LeakerConfig
impl !Send for LeakerConfig
impl !Sync for LeakerConfig
impl Unpin for LeakerConfig
impl UnwindSafe for LeakerConfig
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