Struct vulkanalia::chain::OutputChainPtr
source · pub struct OutputChainPtr(/* private fields */);
Expand description
A non-null pointer in a Vulkan output pointer chain.
Implementations§
source§impl OutputChainPtr
impl OutputChainPtr
sourcepub unsafe fn new(head: *mut c_void) -> Option<Self>
pub unsafe fn new(head: *mut c_void) -> Option<Self>
Creates a non-null pointer in a Vulkan output pointer chain.
§Safety
head
must either be null or be a pointer to a struct that could be
part of an output pointer chain (i.e., vk::OutputChainStruct
). The
same requirement recursively applies to any pointers in the chain.
sourcepub unsafe fn as_base_ref(&self) -> &BaseOutStructure
pub unsafe fn as_base_ref(&self) -> &BaseOutStructure
sourcepub unsafe fn as_ref<T: OutputChainStruct>(&self) -> &T
pub unsafe fn as_ref<T: OutputChainStruct>(&self) -> &T
Trait Implementations§
source§impl Clone for OutputChainPtr
impl Clone for OutputChainPtr
source§fn clone(&self) -> OutputChainPtr
fn clone(&self) -> OutputChainPtr
Returns a copy 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 Debug for OutputChainPtr
impl Debug for OutputChainPtr
source§impl Hash for OutputChainPtr
impl Hash for OutputChainPtr
source§impl Ord for OutputChainPtr
impl Ord for OutputChainPtr
source§fn cmp(&self, other: &OutputChainPtr) -> Ordering
fn cmp(&self, other: &OutputChainPtr) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OutputChainPtr
impl PartialEq for OutputChainPtr
source§fn eq(&self, other: &OutputChainPtr) -> bool
fn eq(&self, other: &OutputChainPtr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OutputChainPtr
impl PartialOrd for OutputChainPtr
source§fn partial_cmp(&self, other: &OutputChainPtr) -> Option<Ordering>
fn partial_cmp(&self, other: &OutputChainPtr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OutputChainPtr
impl Eq for OutputChainPtr
impl StructuralPartialEq for OutputChainPtr
Auto Trait Implementations§
impl Freeze for OutputChainPtr
impl RefUnwindSafe for OutputChainPtr
impl !Send for OutputChainPtr
impl !Sync for OutputChainPtr
impl Unpin for OutputChainPtr
impl UnwindSafe for OutputChainPtr
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