pub struct Ref<'a, T>(/* private fields */);
Expand description
A reference to some Vulkan object or state.
When you use Id
to retrieve something, you can get back a Ref
with the same type
parameter, which you can then dereference to get at the underlying data denoted by the type
parameter.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Ref<'a, T>
impl<'a, T> !RefUnwindSafe for Ref<'a, T>
impl<'a, T> !Send for Ref<'a, T>
impl<'a, T> !Sync for Ref<'a, T>
impl<'a, T> Unpin for Ref<'a, T>
impl<'a, T> !UnwindSafe for Ref<'a, T>
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