Trait xcb::Raw

source ·
pub trait Raw<T>: Sized {
    // Required methods
    unsafe fn from_raw(raw: *mut T) -> Self;
    fn as_raw(&self) -> *mut T;

    // Provided method
    fn into_raw(self) -> *mut T { ... }
}
Expand description

Trait for types that own a C allocated pointer and are represented by the data pointed to.

Required Methods§

source

unsafe fn from_raw(raw: *mut T) -> Self

Build Self from a raw pointer

§Safety

raw must be a valid pointer to the representation of Self, and be allocated with libc::malloc

source

fn as_raw(&self) -> *mut T

Obtain the raw pointer representation

Provided Methods§

source

fn into_raw(self) -> *mut T

Convert self into a raw pointer

Returned value should be freed with libc::free or sent back to from_raw to avoid memory leak.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Raw<xcb_ge_generic_event_t> for CompleteNotifyEvent

source§

impl Raw<xcb_ge_generic_event_t> for xcb::present::ConfigureNotifyEvent

source§

impl Raw<xcb_ge_generic_event_t> for IdleNotifyEvent

source§

impl Raw<xcb_ge_generic_event_t> for RedirectNotifyEvent

source§

impl Raw<xcb_ge_generic_event_t> for BarrierHitEvent

source§

impl Raw<xcb_ge_generic_event_t> for xcb::xinput::ButtonPressEvent

source§

impl Raw<xcb_ge_generic_event_t> for DeviceChangedEvent

source§

impl Raw<xcb_ge_generic_event_t> for EnterEvent

source§

impl Raw<xcb_ge_generic_event_t> for HierarchyEvent

source§

impl Raw<xcb_ge_generic_event_t> for xcb::xinput::KeyPressEvent

source§

impl Raw<xcb_ge_generic_event_t> for PropertyEvent

source§

impl Raw<xcb_ge_generic_event_t> for RawButtonPressEvent

source§

impl Raw<xcb_ge_generic_event_t> for RawKeyPressEvent

source§

impl Raw<xcb_ge_generic_event_t> for RawTouchBeginEvent

source§

impl Raw<xcb_ge_generic_event_t> for TouchBeginEvent

source§

impl Raw<xcb_ge_generic_event_t> for TouchOwnershipEvent

source§

impl Raw<xcb_generic_error_t> for BadDamageError

source§

impl Raw<xcb_generic_error_t> for GenericError

source§

impl Raw<xcb_generic_error_t> for BadCrtcError

source§

impl Raw<xcb_generic_error_t> for BadModeError

source§

impl Raw<xcb_generic_error_t> for BadOutputError

source§

impl Raw<xcb_generic_error_t> for BadProviderError

source§

impl Raw<xcb_generic_error_t> for xcb::record::BadContextError

source§

impl Raw<xcb_generic_error_t> for GlyphError

source§

impl Raw<xcb_generic_error_t> for GlyphSetError

source§

impl Raw<xcb_generic_error_t> for PictFormatError

source§

impl Raw<xcb_generic_error_t> for PictOpError

source§

impl Raw<xcb_generic_error_t> for PictureError

source§

impl Raw<xcb_generic_error_t> for UnknownError

source§

impl Raw<xcb_generic_error_t> for AlarmError

source§

impl Raw<xcb_generic_error_t> for CounterError

source§

impl Raw<xcb_generic_error_t> for RequestError

source§

impl Raw<xcb_generic_error_t> for ValueError

source§

impl Raw<xcb_generic_error_t> for BadClockError

source§

impl Raw<xcb_generic_error_t> for BadHTimingsError

source§

impl Raw<xcb_generic_error_t> for BadVTimingsError

source§

impl Raw<xcb_generic_error_t> for ClientNotLocalError

source§

impl Raw<xcb_generic_error_t> for ExtensionDisabledError

source§

impl Raw<xcb_generic_error_t> for ModeUnsuitableError

source§

impl Raw<xcb_generic_error_t> for ZoomLockedError

source§

impl Raw<xcb_generic_error_t> for BadRegionError

source§

impl Raw<xcb_generic_error_t> for ClassError

source§

impl Raw<xcb_generic_error_t> for DeviceBusyError

source§

impl Raw<xcb_generic_error_t> for DeviceError

source§

impl Raw<xcb_generic_error_t> for EventError

source§

impl Raw<xcb_generic_error_t> for ModeError

source§

impl Raw<xcb_generic_error_t> for KeyboardError

source§

impl Raw<xcb_generic_error_t> for xcb::xprint::BadContextError

source§

impl Raw<xcb_generic_error_t> for BadSequenceError

source§

impl Raw<xcb_generic_error_t> for BadControlError

source§

impl Raw<xcb_generic_error_t> for BadEncodingError

source§

impl Raw<xcb_generic_error_t> for BadPortError

source§

impl Raw<xcb_generic_event_t> for xcb::damage::NotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::dri2::BufferSwapCompleteEvent

source§

impl Raw<xcb_generic_event_t> for InvalidateBuffersEvent

source§

impl Raw<xcb_generic_event_t> for xcb::glx::BufferSwapCompleteEvent

source§

impl Raw<xcb_generic_event_t> for PbufferClobberEvent

source§

impl Raw<xcb_generic_event_t> for GenericEvent

source§

impl Raw<xcb_generic_event_t> for xcb::randr::NotifyEvent

source§

impl Raw<xcb_generic_event_t> for ScreenChangeNotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::screensaver::NotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::shape::NotifyEvent

source§

impl Raw<xcb_generic_event_t> for CompletionEvent

source§

impl Raw<xcb_generic_event_t> for UnknownEvent

source§

impl Raw<xcb_generic_event_t> for AlarmNotifyEvent

source§

impl Raw<xcb_generic_event_t> for CounterNotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::x::ButtonPressEvent

source§

impl Raw<xcb_generic_event_t> for CirculateNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ClientMessageEvent

source§

impl Raw<xcb_generic_event_t> for ColormapNotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::x::ConfigureNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ConfigureRequestEvent

source§

impl Raw<xcb_generic_event_t> for CreateNotifyEvent

source§

impl Raw<xcb_generic_event_t> for DestroyNotifyEvent

source§

impl Raw<xcb_generic_event_t> for EnterNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ExposeEvent

source§

impl Raw<xcb_generic_event_t> for FocusInEvent

source§

impl Raw<xcb_generic_event_t> for GraphicsExposureEvent

source§

impl Raw<xcb_generic_event_t> for GravityNotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::x::KeyPressEvent

source§

impl Raw<xcb_generic_event_t> for KeymapNotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::x::MapNotifyEvent

source§

impl Raw<xcb_generic_event_t> for MapRequestEvent

source§

impl Raw<xcb_generic_event_t> for MappingNotifyEvent

source§

impl Raw<xcb_generic_event_t> for MotionNotifyEvent

source§

impl Raw<xcb_generic_event_t> for NoExposureEvent

source§

impl Raw<xcb_generic_event_t> for PropertyNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ReparentNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ResizeRequestEvent

source§

impl Raw<xcb_generic_event_t> for SelectionClearEvent

source§

impl Raw<xcb_generic_event_t> for xcb::x::SelectionNotifyEvent

source§

impl Raw<xcb_generic_event_t> for SelectionRequestEvent

source§

impl Raw<xcb_generic_event_t> for UnmapNotifyEvent

source§

impl Raw<xcb_generic_event_t> for VisibilityNotifyEvent

source§

impl Raw<xcb_generic_event_t> for CursorNotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::xfixes::SelectionNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ChangeDeviceNotifyEvent

source§

impl Raw<xcb_generic_event_t> for DeviceButtonStateNotifyEvent

source§

impl Raw<xcb_generic_event_t> for DeviceFocusInEvent

source§

impl Raw<xcb_generic_event_t> for DeviceKeyPressEvent

source§

impl Raw<xcb_generic_event_t> for DeviceKeyStateNotifyEvent

source§

impl Raw<xcb_generic_event_t> for DeviceMappingNotifyEvent

source§

impl Raw<xcb_generic_event_t> for DevicePresenceNotifyEvent

source§

impl Raw<xcb_generic_event_t> for DevicePropertyNotifyEvent

source§

impl Raw<xcb_generic_event_t> for DeviceStateNotifyEvent

source§

impl Raw<xcb_generic_event_t> for DeviceValuatorEvent

source§

impl Raw<xcb_generic_event_t> for AccessXNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ActionMessageEvent

source§

impl Raw<xcb_generic_event_t> for BellNotifyEvent

source§

impl Raw<xcb_generic_event_t> for CompatMapNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ControlsNotifyEvent

source§

impl Raw<xcb_generic_event_t> for ExtensionDeviceNotifyEvent

source§

impl Raw<xcb_generic_event_t> for IndicatorMapNotifyEvent

source§

impl Raw<xcb_generic_event_t> for IndicatorStateNotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::xkb::MapNotifyEvent

source§

impl Raw<xcb_generic_event_t> for NamesNotifyEvent

source§

impl Raw<xcb_generic_event_t> for NewKeyboardNotifyEvent

source§

impl Raw<xcb_generic_event_t> for StateNotifyEvent

source§

impl Raw<xcb_generic_event_t> for AttributNotifyEvent

source§

impl Raw<xcb_generic_event_t> for xcb::xprint::NotifyEvent

source§

impl Raw<xcb_generic_event_t> for PortNotifyEvent

source§

impl Raw<xcb_generic_event_t> for VideoNotifyEvent