Trait xcb::x::PropEl

source ·
pub trait PropEl {
    const FORMAT: u8;
}
Expand description

Trait for element in a property list

In events (e.g. GetProperty::value), it allows to assert that the format correspond to the type cast and therefore to do the cast safely at runtime.

In request (e.g. ChangeProperty::data), it allows to infer the format value from the type of passed data.

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PropEl for u8

source§

const FORMAT: u8 = 8u8

source§

impl PropEl for u16

source§

const FORMAT: u8 = 16u8

source§

impl PropEl for u32

source§

const FORMAT: u8 = 32u8

Implementors§

source§

impl PropEl for Atom

source§

const FORMAT: u8 = 32u8

source§

impl PropEl for Window

source§

const FORMAT: u8 = 32u8