pub struct SamplingHeapProfileBuilder { /* private fields */ }Expand description
Builder for SamplingHeapProfile.
Implementations§
Source§impl SamplingHeapProfileBuilder
impl SamplingHeapProfileBuilder
pub fn head<VALUE: Into<SamplingHeapProfileNode>>( &mut self, value: VALUE, ) -> &mut Self
pub fn samples<VALUE: Into<Vec<SamplingHeapProfileSample>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<SamplingHeapProfile, SamplingHeapProfileBuilderError>
pub fn build( &self, ) -> Result<SamplingHeapProfile, SamplingHeapProfileBuilderError>
Trait Implementations§
Source§impl Clone for SamplingHeapProfileBuilder
impl Clone for SamplingHeapProfileBuilder
Source§fn clone(&self) -> SamplingHeapProfileBuilder
fn clone(&self) -> SamplingHeapProfileBuilder
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 moreAuto Trait Implementations§
impl Freeze for SamplingHeapProfileBuilder
impl RefUnwindSafe for SamplingHeapProfileBuilder
impl Send for SamplingHeapProfileBuilder
impl Sync for SamplingHeapProfileBuilder
impl Unpin for SamplingHeapProfileBuilder
impl UnsafeUnpin for SamplingHeapProfileBuilder
impl UnwindSafe for SamplingHeapProfileBuilder
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