pub struct XCBConnection(pub NonNull<xcb_connection_t>);
Available on crate feature
xcb
only.Tuple Fields§
§0: NonNull<xcb_connection_t>
Implementations§
Source§impl XCBConnection
impl XCBConnection
pub fn to_raw_none(&self) -> *mut xcb_connection_t
pub unsafe fn from_raw_none(ptr: *mut xcb_connection_t) -> XCBConnection
pub unsafe fn from_raw_borrow( ptr: *mut xcb_connection_t, ) -> Borrowed<XCBConnection>
pub unsafe fn from_raw_full(ptr: *mut xcb_connection_t) -> XCBConnection
Trait Implementations§
Source§impl Clone for XCBConnection
impl Clone for XCBConnection
Source§fn clone(&self) -> XCBConnection
fn clone(&self) -> XCBConnection
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 XCBConnection
impl Debug for XCBConnection
Source§impl FromGlibPtrBorrow<*mut xcb_connection_t> for XCBConnection
impl FromGlibPtrBorrow<*mut xcb_connection_t> for XCBConnection
Source§unsafe fn from_glib_borrow(
ptr: *mut xcb_connection_t,
) -> Borrowed<XCBConnection>
unsafe fn from_glib_borrow( ptr: *mut xcb_connection_t, ) -> Borrowed<XCBConnection>
Safety Read more
Source§impl FromGlibPtrFull<*mut xcb_connection_t> for XCBConnection
impl FromGlibPtrFull<*mut xcb_connection_t> for XCBConnection
Source§unsafe fn from_glib_full(ptr: *mut xcb_connection_t) -> XCBConnection
unsafe fn from_glib_full(ptr: *mut xcb_connection_t) -> XCBConnection
Safety Read more
Source§impl FromGlibPtrNone<*mut xcb_connection_t> for XCBConnection
impl FromGlibPtrNone<*mut xcb_connection_t> for XCBConnection
Source§unsafe fn from_glib_none(ptr: *mut xcb_connection_t) -> XCBConnection
unsafe fn from_glib_none(ptr: *mut xcb_connection_t) -> XCBConnection
Safety Read more
Source§impl<'a> ToGlibPtr<'a, *mut xcb_connection_t> for &'a XCBConnection
impl<'a> ToGlibPtr<'a, *mut xcb_connection_t> for &'a XCBConnection
type Storage = PhantomData<&'a XCBConnection>
Source§fn to_glib_none(&self) -> Stash<'a, *mut xcb_connection_t, &'a XCBConnection>
fn to_glib_none(&self) -> Stash<'a, *mut xcb_connection_t, &'a XCBConnection>
Transfer: none. Read more
Source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
Source§fn to_glib_full(&self) -> P
fn to_glib_full(&self) -> P
Transfer: full. Read more
Auto Trait Implementations§
impl Freeze for XCBConnection
impl RefUnwindSafe for XCBConnection
impl !Send for XCBConnection
impl !Sync for XCBConnection
impl Unpin for XCBConnection
impl UnwindSafe for XCBConnection
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