logo
pub struct ReadLock<'a, T> where
    T: BufferContents + ?Sized + 'a, 
{ /* private fields */ }
Expand description

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.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the device that owns Self.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.