[−][src]Struct nuki::Buffer
Implementations
impl Buffer[src]
pub fn new(alloc: &Allocator) -> Buffer[src]
pub fn with_size(alloc: &Allocator, buffer_size: usize) -> Buffer[src]
pub fn with_fixed(memory: &mut [u8]) -> Buffer[src]
pub fn total(&self) -> usize[src]
pub fn info(&self) -> (usize, usize, usize, usize)[src]
pub fn memory(&mut self) -> *mut c_void[src]
pub fn memory_const(&self) -> *const c_void[src]
pub fn mark(&mut self, type_: BufferAllocationType)[src]
pub fn reset(&mut self, type_: BufferAllocationType)[src]
pub fn clear(&mut self)[src]
pub fn as_bytes(&self) -> &[u8][src]
Trait Implementations
impl AsMut<Buffer> for nk_buffer[src]
impl AsMut<nk_buffer> for Buffer[src]
impl AsRef<Buffer> for nk_buffer[src]
impl AsRef<nk_buffer> for Buffer[src]
impl Clone for Buffer[src]
impl Debug for Buffer[src]
impl Default for Buffer[src]
impl Drop for Buffer[src]
Auto Trait Implementations
impl RefUnwindSafe for Buffer
impl !Send for Buffer
impl !Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
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,
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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>,