pub struct Queue(/* private fields */);Trait Implementations§
Source§impl Handle for Queue
impl Handle for Queue
const TYPE: ObjectType = ObjectType::Queue
type InnerType = NonZero<usize>
Source§fn as_raw(&self) -> NonZeroUsize
fn as_raw(&self) -> NonZeroUsize
Retrieve the inner content of the vulkan handle, to be used by other Vulkan librairies not using this crate
Source§unsafe fn from_raw(x: NonZeroUsize) -> Self
unsafe fn from_raw(x: NonZeroUsize) -> Self
Convert a pointer to a handle
When calling this code, the user must ensure the following: Read more
Source§unsafe fn clone(&self) -> Self
unsafe fn clone(&self) -> Self
clone the current object, this function is unsafe as the caller must ensure that only one of the two
handles is destroyed, moreover, the second handle must not be used after the first has been destroyed
Source§unsafe fn try_from_raw<T>(x: T) -> Option<Self>
unsafe fn try_from_raw<T>(x: T) -> Option<Self>
Same as Handle::from_raw but allows for types that can be zero (usize or u64 depending on the handle)
Will fail if x is null/zero
Source§fn borrow<'a>(&'a self) -> BorrowedHandle<'a, Self>
fn borrow<'a>(&'a self) -> BorrowedHandle<'a, Self>
Return a representation of &self
The advantage is that BorrowedHandle<’a, Self> has internally the exact same memory
representation as the raw handle it represents and therefore should be used when a deref is not enough
like for vulkan commands that require arrays of handles
Source§fn borrow_mut<'a>(&'a mut self) -> BorrowedMutHandle<'a, Self>
fn borrow_mut<'a>(&'a mut self) -> BorrowedMutHandle<'a, Self>
See Handle::borrow
Source§impl Ord for Queue
impl Ord for Queue
Source§impl PartialOrd for Queue
impl PartialOrd for Queue
impl Alias<Queue> for Queue
impl Eq for Queue
impl StructuralPartialEq for Queue
Auto Trait Implementations§
impl Freeze for Queue
impl RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl UnwindSafe for Queue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more