pub struct AutocloseMappedMemoryRange<'m, DeviceMemory: DeviceMemoryMut + ?Sized + 'm>(/* private fields */);
Methods from Deref<Target = MappedMemory<'m, DeviceMemory>>§
Sourcepub unsafe fn addr_of_mut<T>(&self, offset: usize) -> *mut T
pub unsafe fn addr_of_mut<T>(&self, offset: usize) -> *mut T
Get a mutable pointer in mapped memory with byte offsets
§Safety
Caller must guarantee that the pointer and its alignment are valid
Sourcepub unsafe fn get<T>(&self, offset: usize) -> &T
pub unsafe fn get<T>(&self, offset: usize) -> &T
Get a reference in mapped memory with byte offsets
§Safety
Caller must guarantee that the pointer and its alignment are valid
Sourcepub unsafe fn get_mut<T>(&self, offset: usize) -> &mut T
pub unsafe fn get_mut<T>(&self, offset: usize) -> &mut T
Get a mutable reference in mapped memory with byte offsets
§Safety
Caller must guarantee that the pointer and its alignment are valid
Sourcepub unsafe fn slice<T>(&self, offset: usize, count: usize) -> &[T]
pub unsafe fn slice<T>(&self, offset: usize, count: usize) -> &[T]
Get a slice in mapped memory with byte offsets
§Safety
Caller must guarantee that the pointer and its alignment are valid
Sourcepub unsafe fn slice_mut<T>(&self, offset: usize, count: usize) -> &mut [T]
pub unsafe fn slice_mut<T>(&self, offset: usize, count: usize) -> &mut [T]
Get a mutable slice in mapped memory with byte offsets
§Safety
Caller must guarantee that the pointer and its alignment are valid
Trait Implementations§
Source§impl<'m, DeviceMemory: DeviceMemoryMut + ?Sized + 'm> Deref for AutocloseMappedMemoryRange<'m, DeviceMemory>
impl<'m, DeviceMemory: DeviceMemoryMut + ?Sized + 'm> Deref for AutocloseMappedMemoryRange<'m, DeviceMemory>
Source§impl<'m, DeviceMemory: DeviceMemoryMut + ?Sized + 'm> Drop for AutocloseMappedMemoryRange<'m, DeviceMemory>
impl<'m, DeviceMemory: DeviceMemoryMut + ?Sized + 'm> Drop for AutocloseMappedMemoryRange<'m, DeviceMemory>
Auto Trait Implementations§
impl<'m, DeviceMemory> Freeze for AutocloseMappedMemoryRange<'m, DeviceMemory>where
DeviceMemory: ?Sized,
impl<'m, DeviceMemory> RefUnwindSafe for AutocloseMappedMemoryRange<'m, DeviceMemory>where
DeviceMemory: RefUnwindSafe + ?Sized,
impl<'m, DeviceMemory> !Send for AutocloseMappedMemoryRange<'m, DeviceMemory>
impl<'m, DeviceMemory> !Sync for AutocloseMappedMemoryRange<'m, DeviceMemory>
impl<'m, DeviceMemory> Unpin for AutocloseMappedMemoryRange<'m, DeviceMemory>where
DeviceMemory: ?Sized,
impl<'m, DeviceMemory> !UnwindSafe for AutocloseMappedMemoryRange<'m, DeviceMemory>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more