pub struct WordBuf { /* private fields */ }Expand description
A capacity word followed by cap atomic slots.
Implementations§
Source§impl WordBuf
impl WordBuf
Sourcepub fn alloc(cap: usize, fill: u64) -> *mut WordBuf
pub fn alloc(cap: usize, fill: u64) -> *mut WordBuf
A new buffer of cap slots, each holding fill.
Sourcepub unsafe fn free(p: *mut u8)
pub unsafe fn free(p: *mut u8)
§Safety
p must come from WordBuf::alloc and be unreachable by any reader.
Auto Trait Implementations§
impl !Freeze for WordBuf
impl RefUnwindSafe for WordBuf
impl Send for WordBuf
impl Sync for WordBuf
impl Unpin for WordBuf
impl UnsafeUnpin for WordBuf
impl UnwindSafe for WordBuf
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