pub enum DispatchSurfaceOutputDetail {
Core(Arc<CoreSurfaceOutputDetail>),
Custom(DynSurfaceOutputDetail),
}
Variants§
Core(Arc<CoreSurfaceOutputDetail>)
Custom(DynSurfaceOutputDetail)
Implementations§
Source§impl DispatchSurfaceOutputDetail
impl DispatchSurfaceOutputDetail
pub fn as_core(&self) -> &CoreSurfaceOutputDetail
pub fn as_core_opt(&self) -> Option<&CoreSurfaceOutputDetail>
pub fn as_custom<T: SurfaceOutputDetailInterface>(&self) -> Option<&T>
pub fn custom<T: SurfaceOutputDetailInterface>(t: T) -> Self
Trait Implementations§
Source§impl Clone for DispatchSurfaceOutputDetail
impl Clone for DispatchSurfaceOutputDetail
Source§fn clone(&self) -> DispatchSurfaceOutputDetail
fn clone(&self) -> DispatchSurfaceOutputDetail
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DispatchSurfaceOutputDetail
impl Debug for DispatchSurfaceOutputDetail
Source§impl Deref for DispatchSurfaceOutputDetail
impl Deref for DispatchSurfaceOutputDetail
Source§impl From<CoreSurfaceOutputDetail> for DispatchSurfaceOutputDetail
impl From<CoreSurfaceOutputDetail> for DispatchSurfaceOutputDetail
Source§fn from(value: CoreSurfaceOutputDetail) -> Self
fn from(value: CoreSurfaceOutputDetail) -> Self
Converts to this type from the input type.
Source§impl Hash for DispatchSurfaceOutputDetail
impl Hash for DispatchSurfaceOutputDetail
Source§impl Ord for DispatchSurfaceOutputDetail
impl Ord for DispatchSurfaceOutputDetail
Source§fn cmp(&self, other: &DispatchSurfaceOutputDetail) -> Ordering
fn cmp(&self, other: &DispatchSurfaceOutputDetail) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for DispatchSurfaceOutputDetail
impl PartialOrd for DispatchSurfaceOutputDetail
impl Eq for DispatchSurfaceOutputDetail
impl StructuralPartialEq for DispatchSurfaceOutputDetail
Auto Trait Implementations§
impl Freeze for DispatchSurfaceOutputDetail
impl !RefUnwindSafe for DispatchSurfaceOutputDetail
impl Send for DispatchSurfaceOutputDetail
impl Sync for DispatchSurfaceOutputDetail
impl Unpin for DispatchSurfaceOutputDetail
impl !UnwindSafe for DispatchSurfaceOutputDetail
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more