#[repr(transparent)]pub struct ChunkRef { /* private fields */ }
Implementations§
source§impl ChunkRef
impl ChunkRef
pub fn offset(&self) -> u32
pub fn set_offset(&mut self, offset: u32)
pub fn size(&self) -> u32
pub fn set_size(&mut self, size: u32)
pub fn stride(&self) -> i32
pub fn set_stride(&mut self, stride: i32)
pub fn flags(&self) -> Flags
pub fn set_flags(&mut self, flags: Flags)
Trait Implementations§
source§impl RawWrapper for ChunkRef
impl RawWrapper for ChunkRef
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ChunkRef
impl Send for ChunkRef
impl Sync for ChunkRef
impl Unpin for ChunkRef
impl UnwindSafe for ChunkRef
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