breaking: Use raw-window-handle version 0.6
Signed-off-by: John Nunley <dev@notgull.net> Co-Authored-By: dAxpeDDa <daxpedda@gmail.com>
This commit is contained in:
parent
18c944736e
commit
0bcd2e22a2
22 changed files with 830 additions and 628 deletions
|
|
@ -13,13 +13,13 @@ use crate::SoftBufferError;
|
|||
///
|
||||
/// This should be consistent with stacked borrow rules, and miri seems to
|
||||
/// accept it at least in simple cases.
|
||||
pub struct BorrowStack<'a, T: 'static + ?Sized, U: 'static + ?Sized> {
|
||||
pub struct BorrowStack<'a, T: 'a + ?Sized, U: 'a + ?Sized> {
|
||||
container: *mut T,
|
||||
member: *mut U,
|
||||
_phantom: std::marker::PhantomData<&'a mut T>,
|
||||
}
|
||||
|
||||
impl<'a, T: 'static + ?Sized, U: 'static + ?Sized> BorrowStack<'a, T, U> {
|
||||
impl<'a, T: 'a + ?Sized, U: 'a + ?Sized> BorrowStack<'a, T, U> {
|
||||
pub fn new<F>(container: &'a mut T, f: F) -> Result<Self, SoftBufferError>
|
||||
where
|
||||
F: for<'b> FnOnce(&'b mut T) -> Result<&'b mut U, SoftBufferError>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue