Skip to content

Commit

Permalink
allow unsized pnext arguments for all push_next functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lilly-lizard committed Jan 6, 2024
1 parent e7dab7c commit 609ac20
Show file tree
Hide file tree
Showing 3 changed files with 504 additions and 586 deletions.
2 changes: 1 addition & 1 deletion ash/src/vk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod platform_types;
pub use platform_types::*;
/// Iterates through the pointer chain. Includes the item that is passed into the function.
/// Stops at the last [`BaseOutStructure`] that has a null [`BaseOutStructure::p_next`] field.
pub(crate) unsafe fn ptr_chain_iter<T>(
pub(crate) unsafe fn ptr_chain_iter<T: ?Sized>(
ptr: &mut T,
) -> impl Iterator<Item = *mut BaseOutStructure<'_>> {
let ptr = <*mut T>::cast::<BaseOutStructure<'_>>(ptr);
Expand Down

0 comments on commit 609ac20

Please sign in to comment.