[−][src]Struct bedrock::resources::MappedMemoryRange
Specifies the block of mapped memory in a DeviceMemory
Methods
impl<'m> MappedMemoryRange<'m>
[src]
pub unsafe fn get<T>(&self, offset: usize) -> &T
[src]
Get a reference in mapped memory with byte offsets
Safety
Caller must guarantee that the pointer and its alignment are valid
pub unsafe fn get_mut<T>(&self, offset: usize) -> &mut T
[src]
Get a mutable reference in mapped memory with byte offsets
Safety
Caller must guarantee that the pointer and its alignment are valid
pub unsafe fn slice<T>(&self, offset: usize, count: usize) -> &[T]
[src]
Get a slice in mapped memory with byte offsets
Safety
Caller must guarantee that the pointer and its alignment are valid
pub unsafe fn slice_mut<T>(&self, offset: usize, count: usize) -> &mut [T]
[src]
Get a mutable slice in mapped memory with byte offsets
Safety
Caller must guarantee that the pointer and its alignment are valid
pub unsafe fn clone_from_slice_at<T: Clone>(&self, offset: usize, src: &[T])
[src]
Clone data from slice at the specified offset in mapped memory.
Safety
Caller must guarantee that the pointer and its alignment are valid
pub unsafe fn clone_at<T: Clone>(&self, offset: usize, src: &T)
[src]
Clone data from slice at the specified offset in mapped memory.
Safety
Caller must guarantee that the pointer and its alignment are valid
Auto Trait Implementations
impl<'m> !RefUnwindSafe for MappedMemoryRange<'m>
impl<'m> !Send for MappedMemoryRange<'m>
impl<'m> !Sync for MappedMemoryRange<'m>
impl<'m> Unpin for MappedMemoryRange<'m>
impl<'m> !UnwindSafe for MappedMemoryRange<'m>
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, 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>,