pub struct SelectiveReadOptionsBuilder { /* private fields */ }
Expand description
Builder for creating SelectiveReadOptions with a fluent API
Implementations§
Source§impl SelectiveReadOptionsBuilder
impl SelectiveReadOptionsBuilder
Sourcepub fn for_memory_analysis() -> Self
pub fn for_memory_analysis() -> Self
Create a builder for memory analysis
Sourcepub fn for_lifetime_analysis() -> Self
pub fn for_lifetime_analysis() -> Self
Create a builder for lifetime analysis
Sourcepub fn for_performance_analysis() -> Self
pub fn for_performance_analysis() -> Self
Create a builder for performance analysis
Sourcepub fn for_complex_types_analysis() -> Self
pub fn for_complex_types_analysis() -> Self
Create a builder for complex types analysis
Sourcepub fn for_unsafe_ffi_analysis() -> Self
pub fn for_unsafe_ffi_analysis() -> Self
Create a builder for unsafe FFI analysis
Sourcepub fn include_field(self, field: AllocationField) -> Self
pub fn include_field(self, field: AllocationField) -> Self
Add a field to include
Sourcepub fn include_fields(self, fields: &[AllocationField]) -> Self
pub fn include_fields(self, fields: &[AllocationField]) -> Self
Add multiple fields to include
Sourcepub fn with_fields(self, fields: HashSet<AllocationField>) -> Self
pub fn with_fields(self, fields: HashSet<AllocationField>) -> Self
Set all fields to include
Sourcepub fn filter(self, filter: AllocationFilter) -> Self
pub fn filter(self, filter: AllocationFilter) -> Self
Add a filter
Sourcepub fn filters(self, filters: Vec<AllocationFilter>) -> Self
pub fn filters(self, filters: Vec<AllocationFilter>) -> Self
Add multiple filters
Sourcepub fn batch_processing(self, enabled: bool, batch_size: Option<usize>) -> Self
pub fn batch_processing(self, enabled: bool, batch_size: Option<usize>) -> Self
Configure batch processing
Sourcepub fn build(self) -> Result<SelectiveReadOptions, BinaryExportError>
pub fn build(self) -> Result<SelectiveReadOptions, BinaryExportError>
Build the final SelectiveReadOptions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SelectiveReadOptionsBuilder
impl RefUnwindSafe for SelectiveReadOptionsBuilder
impl Send for SelectiveReadOptionsBuilder
impl Sync for SelectiveReadOptionsBuilder
impl Unpin for SelectiveReadOptionsBuilder
impl UnwindSafe for SelectiveReadOptionsBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more