Struct winit::platform_impl::platform::x11::util::memory::XSmartPointer
source · pub(crate) struct XSmartPointer<'a, T> {
xconn: &'a XConnection,
pub ptr: *mut T,
}
Fields§
§xconn: &'a XConnection
§ptr: *mut T
Implementations§
source§impl<'a, T> XSmartPointer<'a, T>
impl<'a, T> XSmartPointer<'a, T>
pub fn new(xconn: &'a XConnection, ptr: *mut T) -> Option<Self>
Trait Implementations§
source§impl<'a, T> Deref for XSmartPointer<'a, T>
impl<'a, T> Deref for XSmartPointer<'a, T>
source§impl<'a, T> DerefMut for XSmartPointer<'a, T>
impl<'a, T> DerefMut for XSmartPointer<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for XSmartPointer<'a, T>where T: RefUnwindSafe,
impl<'a, T> !Send for XSmartPointer<'a, T>
impl<'a, T> !Sync for XSmartPointer<'a, T>
impl<'a, T> Unpin for XSmartPointer<'a, T>
impl<'a, T> UnwindSafe for XSmartPointer<'a, T>where T: RefUnwindSafe,
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