pub struct VkHandleRefMut<'r, H>(/* private fields */);
Expand description
A smart handle to a Vulkan object that holds a source lifetime and mutable-borrowing (bitpattern as same as native handle type)
Implementations§
Source§impl<'r, H> VkHandleRefMut<'r, H>
impl<'r, H> VkHandleRefMut<'r, H>
pub fn new(r: &'r mut (impl VkHandleMut<Handle = H> + ?Sized)) -> Self
pub const fn from_raw_ref(h: &'r H) -> &'r Self
Trait Implementations§
Source§impl<'r, H: Clone> Clone for VkHandleRefMut<'r, H>
impl<'r, H: Clone> Clone for VkHandleRefMut<'r, H>
Source§fn clone(&self) -> VkHandleRefMut<'r, H>
fn clone(&self) -> VkHandleRefMut<'r, H>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'r, H: Debug> Debug for VkHandleRefMut<'r, H>
impl<'r, H: Debug> Debug for VkHandleRefMut<'r, H>
Source§impl<'r, H: Hash> Hash for VkHandleRefMut<'r, H>
impl<'r, H: Hash> Hash for VkHandleRefMut<'r, H>
Source§impl<'r, H: PartialEq> PartialEq for VkHandleRefMut<'r, H>
impl<'r, H: PartialEq> PartialEq for VkHandleRefMut<'r, H>
Source§impl<H: Copy> VkHandle for VkHandleRefMut<'_, H>
impl<H: Copy> VkHandle for VkHandleRefMut<'_, H>
type Handle = H
Source§fn native_ptr(&self) -> H
fn native_ptr(&self) -> H
Retrieve an underlying handle
fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>
Source§impl<H: Copy> VkHandleMut for VkHandleRefMut<'_, H>
impl<H: Copy> VkHandleMut for VkHandleRefMut<'_, H>
Source§fn native_ptr_mut(&mut self) -> H
fn native_ptr_mut(&mut self) -> H
Retrieve an underlying mutable handle
fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>
impl<'r, H: Eq> Eq for VkHandleRefMut<'r, H>
impl<'r, H> StructuralPartialEq for VkHandleRefMut<'r, H>
Auto Trait Implementations§
impl<'r, H> Freeze for VkHandleRefMut<'r, H>where
H: Freeze,
impl<'r, H> !RefUnwindSafe for VkHandleRefMut<'r, H>
impl<'r, H> !Send for VkHandleRefMut<'r, H>
impl<'r, H> !Sync for VkHandleRefMut<'r, H>
impl<'r, H> Unpin for VkHandleRefMut<'r, H>where
H: Unpin,
impl<'r, H> !UnwindSafe for VkHandleRefMut<'r, H>
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