Struct smithay::wayland::shm::BufferData

source ·
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

Wwidth 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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
A type that holds a sized version of the content.
Prepares an output buffer, then turns this buffer into an Owned.
Returns the size of each element.
Produces a pointer to the data.
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Sets value as a parameter of self.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.