[−][src]Struct spaik::nk::Nuke
Fields
free: *mut c_char
grow_num: size_t
used: size_t
num_frees: size_t
num_allocs: size_t
num_atoms: size_t
load_factor: f64
load_max: size_t
min_block_sz: NkSz
sz: size_t
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
reloc: *mut NkRelocArray
last: *mut NkAtom
mem: __IncompleteArrayField<c_char>
Implementations
impl Nuke
[src]
pub fn has_relocated(&self) -> u8
[src]
pub fn set_has_relocated(&mut self, val: u8)
[src]
pub fn new_bitfield_1(has_relocated: u8) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]
impl Nuke
[src]
pub fn new(sz: usize) -> *mut Nuke
[src]
#[must_use = "Relocation must be confirmed"]pub fn compact<'z>(&mut self) -> &'z NkRelocArray
[src]
#[must_use = "Relocation must be confirmed"]pub fn sweep_compact<'z>(&mut self) -> &'z NkRelocArray
[src]
pub unsafe fn alloc<T: Fissile>(
&mut self
) -> (*mut T, Option<(*mut Nuke, *const NkRelocArray)>)
[src]
&mut self
) -> (*mut T, Option<(*mut Nuke, *const NkRelocArray)>)
pub unsafe fn fit_bytes(
&mut self,
num_bytes: usize
) -> Option<(*mut Nuke, *const NkRelocArray)>
[src]
&mut self,
num_bytes: usize
) -> Option<(*mut Nuke, *const NkRelocArray)>
pub fn size_of<T: Fissile>() -> usize
[src]
pub unsafe fn fit<T: Fissile>(
&mut self,
num: usize
) -> Option<(*mut Nuke, *const NkRelocArray)>
[src]
&mut self,
num: usize
) -> Option<(*mut Nuke, *const NkRelocArray)>
pub fn confirm_relocation(&mut self)
[src]
pub fn iter_mut(&mut self) -> NukeIter<'_>ⓘ
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Nuke
[src]
impl !Send for Nuke
[src]
impl !Sync for Nuke
[src]
impl Unpin for Nuke
[src]
impl UnwindSafe for Nuke
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,