Struct vulkano::buffer::cpu_access::ReadLock[][src]

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

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

Note that this object holds a rwlock read guard on the chunk. If another thread tries to access this buffer’s content or tries to submit a GPU command that uses this buffer, it will block.

Implementations

impl<'a, T: ?Sized + 'a> ReadLock<'a, T>[src]

pub fn map<U: ?Sized + 'a, F>(self, f: F) -> ReadLock<'a, U> where
    F: FnOnce(&mut T) -> &mut U, 
[src]

Makes a new ReadLock to access a sub-part of the current ReadLock.

Trait Implementations

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

type Target = T

The resulting type after dereferencing.

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

Dereferences the value.

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for ReadLock<'a, T>

impl<'a, T: ?Sized> Send for ReadLock<'a, T>

impl<'a, T: ?Sized> Sync for ReadLock<'a, T>

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

impl<'a, T> !UnwindSafe for ReadLock<'a, T>

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.