[][src]Struct bedrock::resources::MappedMemoryRange

pub struct MappedMemoryRange<'m>(_, _, _);

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.