Skip to main content

MemoryOverhead

Struct MemoryOverhead 

Source
pub struct MemoryOverhead;
Expand description

Estimated object overheads in bytes (Rust equivalents of constants). These are approximate sizes used for memory accounting.

Implementations§

Source§

impl MemoryOverhead

Source

pub const LOCKIMPL_OVERHEAD: i64 = 96

Overhead for a LockImpl.

Source

pub const THINLOCKIMPL_OVERHEAD: i64 = 32

Overhead for a ThinLockImpl.

Source

pub const LOCKINFO_OVERHEAD: i64 = 32

Overhead for a LockInfo.

Source

pub const HASHMAP_ENTRY_OVERHEAD: i64 = 48

Overhead for a HashMap entry.

Source

pub const LONG_OVERHEAD: i64 = 16

Overhead for a boxed i64.

Source

pub const IN_OVERHEAD: i64 = 400

Overhead for an IN node (approximate).

Source

pub const BIN_OVERHEAD: i64 = 500

Overhead for a BIN node.

Source

pub const LN_OVERHEAD: i64 = 48

Overhead for an LN.

Source

pub const TXN_OVERHEAD: i64 = 200

Overhead for a Txn.

Source

pub const BASICLOCKER_OVERHEAD: i64 = 80

Overhead for a BasicLocker.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.