pub struct AcceptedFormat {
pub format: HardwareBufferFormat,
pub modifiers: Vec<u64>,
}Expand description
One format a compositor imports.
Fields§
§format: HardwareBufferFormat§modifiers: Vec<u64>The DRM format modifiers it imports the format in, Linux’s alone, in its order of
preference: DRM_FORMAT_MOD_INVALID alone means the driver’s implicit layout. Empty
elsewhere, where the system’s allocator picks the layout and the compositor takes it.
Trait Implementations§
Source§impl Clone for AcceptedFormat
impl Clone for AcceptedFormat
Source§impl Debug for AcceptedFormat
impl Debug for AcceptedFormat
impl Eq for AcceptedFormat
Source§impl PartialEq for AcceptedFormat
impl PartialEq for AcceptedFormat
impl StructuralPartialEq for AcceptedFormat
Auto Trait Implementations§
impl Forget for AcceptedFormat
impl Freeze for AcceptedFormat
impl Move for AcceptedFormat
impl RefUnwindSafe for AcceptedFormat
impl Send for AcceptedFormatwhere
RawVecInner: Send,
impl Sync for AcceptedFormatwhere
RawVecInner: Sync,
impl Unpin for AcceptedFormat
impl UnsafeUnpin for AcceptedFormat
impl UnwindSafe for AcceptedFormatwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.