pub struct Xext {
pub XShmQueryExtension: unsafe extern "C" fn(_: *mut Display) -> Bool,
pub XShmGetEventBase: unsafe extern "C" fn(_: *mut Display) -> c_int,
pub XShmQueryVersion: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int, _: *mut Bool) -> Bool,
pub XShmPixmapFormat: unsafe extern "C" fn(_: *mut Display) -> c_int,
pub XShmAttach: unsafe extern "C" fn(_: *mut Display, _: *mut XShmSegmentInfo) -> Bool,
pub XShmDetach: unsafe extern "C" fn(_: *mut Display, _: *mut XShmSegmentInfo) -> Bool,
pub XShmPutImage: unsafe extern "C" fn(_: *mut Display, _: Drawable, _: GC, _: *mut XImage, _: c_int, _: c_int, _: c_int, _: c_int, _: c_uint, _: c_uint, _: Bool) -> Bool,
pub XShmGetImage: unsafe extern "C" fn(_: *mut Display, _: Drawable, _: *mut XImage, _: c_int, _: c_int, _: c_uint) -> Bool,
pub XShmCreateImage: unsafe extern "C" fn(_: *mut Display, _: *mut Visual, _: c_uint, _: c_int, _: *mut c_char, _: *mut XShmSegmentInfo, _: c_uint, _: c_uint) -> *mut XImage,
pub XShmCreatePixmap: unsafe extern "C" fn(_: *mut Display, _: Drawable, _: *mut c_char, _: *mut XShmSegmentInfo, _: c_uint, _: c_uint, _: c_uint) -> Pixmap,
/* private fields */
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.