Struct bgfx_sys::bgfx_memory_s
source · #[repr(C)]pub struct bgfx_memory_s {
pub data: *mut u8,
pub size: u32,
}
Expand description
Memory must be obtained by calling bgfx::alloc
, bgfx::copy
, or bgfx::makeRef
.
@attention It is illegal to create this structure on stack and pass it to any bgfx API.
Fields§
§data: *mut u8
§size: u32
Pointer to data.
Trait Implementations§
source§impl Clone for bgfx_memory_s
impl Clone for bgfx_memory_s
source§fn clone(&self) -> bgfx_memory_s
fn clone(&self) -> bgfx_memory_s
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 bgfx_memory_s
impl Debug for bgfx_memory_s
impl Copy for bgfx_memory_s
Auto Trait Implementations§
impl Freeze for bgfx_memory_s
impl RefUnwindSafe for bgfx_memory_s
impl !Send for bgfx_memory_s
impl !Sync for bgfx_memory_s
impl Unpin for bgfx_memory_s
impl UnwindSafe for bgfx_memory_s
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