Struct vulkano::memory::CpuAccess[][src]

pub struct CpuAccess<'a, T: ?Sized + 'a> { /* fields omitted */ }

Object that can be used to read or write the content of a MappedDeviceMemory.

This object derefs to the content, just like a MutexGuard for example.

Trait Implementations

impl<'a, T: ?Sized + 'a> Deref for CpuAccess<'a, T>[src]

type Target = T

The resulting type after dereferencing.

fn deref(&self) -> &T[src]

Dereferences the value.

impl<'a, T: ?Sized + 'a> DerefMut for CpuAccess<'a, T>[src]

fn deref_mut(&mut self) -> &mut T[src]

Mutably dereferences the value.

impl<'a, T: ?Sized + 'a> Drop for CpuAccess<'a, T>[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl<'a, T: ?Sized + 'a> Send for CpuAccess<'a, T>[src]

impl<'a, T: ?Sized + 'a> Sync for CpuAccess<'a, T>[src]

Auto Trait Implementations

impl<'a, T: ?Sized> RefUnwindSafe for CpuAccess<'a, T> where
    T: RefUnwindSafe

impl<'a, T: ?Sized> Unpin for CpuAccess<'a, T>

impl<'a, T: ?Sized> UnwindSafe for CpuAccess<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for T[src]

pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>[src]

Builds a pointer to this type from a raw pointer.

pub fn is_size_suitable(usize) -> bool[src]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

impl<T> DeviceOwned for T where
    T: Deref,
    <T as Deref>::Target: DeviceOwned
[src]

pub fn device(&Self) -> &Arc<Device>[src]

Returns the device that owns Self.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.