pub struct SamplingHeapProfileBuilder { /* private fields */ }
Implementations§
source§impl SamplingHeapProfileBuilder
impl SamplingHeapProfileBuilder
pub fn head( self, head: impl Into<SamplingHeapProfileNode>, ) -> SamplingHeapProfileBuilder
pub fn sample( self, sample: impl Into<SamplingHeapProfileSample>, ) -> SamplingHeapProfileBuilder
pub fn samples<I, S>(self, samples: I) -> SamplingHeapProfileBuilder
pub fn build(self) -> Result<SamplingHeapProfile, String>
Trait Implementations§
source§impl Clone for SamplingHeapProfileBuilder
impl Clone for SamplingHeapProfileBuilder
source§fn clone(&self) -> SamplingHeapProfileBuilder
fn clone(&self) -> SamplingHeapProfileBuilder
Returns a copy 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 Default for SamplingHeapProfileBuilder
impl Default for SamplingHeapProfileBuilder
source§fn default() -> SamplingHeapProfileBuilder
fn default() -> SamplingHeapProfileBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SamplingHeapProfileBuilder
impl RefUnwindSafe for SamplingHeapProfileBuilder
impl Send for SamplingHeapProfileBuilder
impl Sync for SamplingHeapProfileBuilder
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)