pub(crate) struct PnextChain(*mut BaseOutStructure<'static>);Available on
vulkan only.Expand description
A caller-provided pNext chain, stashed by one of the set_next_*_chain
setters until the Vulkan call that consumes it.
Tuple Fields§
§0: *mut BaseOutStructure<'static>Implementations§
Source§impl PnextChain
impl PnextChain
Sourcepub(crate) fn new(chain: *mut c_void) -> Self
pub(crate) fn new(chain: *mut c_void) -> Self
Wraps the raw chain pointer that a set_next_*_chain setter received.
Sourcepub(crate) unsafe fn splice_into(self, existing: *const c_void) -> *const c_void
pub(crate) unsafe fn splice_into(self, existing: *const c_void) -> *const c_void
Splices this chain in front of existing, the current p_next of a
Vulkan info struct, and returns the new chain head.
§Safety
The chain must still be valid, and the info struct must be passed to the Vulkan call that consumes the chain.
Trait Implementations§
impl Send for PnextChain
impl Sync for PnextChain
Auto Trait Implementations§
impl Freeze for PnextChain
impl RefUnwindSafe for PnextChain
impl Unpin for PnextChain
impl UnwindSafe for PnextChain
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more