Struct smithay::wayland::shm::BufferData [−][src]
pub struct BufferData { pub offset: i32, pub width: i32, pub height: i32, pub stride: i32, pub format: Format, }
Expand description
Details of the contents of a buffer relative to its pool
Fields
offset: i32
Offset of the start of the buffer relative to the beginning of the pool in bytes
width: i32
Width of the buffer in bytes
height: i32
Height of the buffer in bytes
stride: i32
Stride of the buffer in bytes
format: Format
Format used by this buffer
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BufferData
impl Send for BufferData
impl Sync for BufferData
impl Unpin for BufferData
impl UnwindSafe for BufferData
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V