#[repr(C)]pub struct memory_profiler_interface {
pub get: Option<unsafe extern "C" fn(obj: *mut conf_object_t, access: read_or_write_t) -> *mut conf_object_t>,
pub set: Option<unsafe extern "C" fn(obj: *mut conf_object_t, access: read_or_write_t, prof: *mut conf_object_t) -> bool>,
pub get_granularity_log2: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>,
}
Fields§
§get: Option<unsafe extern "C" fn(obj: *mut conf_object_t, access: read_or_write_t) -> *mut conf_object_t>
§set: Option<unsafe extern "C" fn(obj: *mut conf_object_t, access: read_or_write_t, prof: *mut conf_object_t) -> bool>
§get_granularity_log2: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>
Trait Implementations§
source§impl Clone for memory_profiler_interface
impl Clone for memory_profiler_interface
source§fn clone(&self) -> memory_profiler_interface
fn clone(&self) -> memory_profiler_interface
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 Debug for memory_profiler_interface
impl Debug for memory_profiler_interface
source§impl Default for memory_profiler_interface
impl Default for memory_profiler_interface
source§fn default() -> memory_profiler_interface
fn default() -> memory_profiler_interface
Returns the “default value” for a type. Read more
source§impl Hash for memory_profiler_interface
impl Hash for memory_profiler_interface
source§impl Ord for memory_profiler_interface
impl Ord for memory_profiler_interface
source§fn cmp(&self, other: &memory_profiler_interface) -> Ordering
fn cmp(&self, other: &memory_profiler_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialOrd for memory_profiler_interface
impl PartialOrd for memory_profiler_interface
impl Copy for memory_profiler_interface
impl Eq for memory_profiler_interface
impl StructuralPartialEq for memory_profiler_interface
Auto Trait Implementations§
impl Freeze for memory_profiler_interface
impl RefUnwindSafe for memory_profiler_interface
impl Send for memory_profiler_interface
impl Sync for memory_profiler_interface
impl Unpin for memory_profiler_interface
impl UnwindSafe for memory_profiler_interface
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)