Struct vulkano::swapchain::SupportedCompositeAlpha
source · [−]#[non_exhaustive]pub struct SupportedCompositeAlpha {
pub opaque: bool,
pub pre_multiplied: bool,
pub post_multiplied: bool,
pub inherit: bool,
}
Expand description
List of supported composite alpha modes.
See the docs of CompositeAlpha
.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.opaque: bool
pre_multiplied: bool
post_multiplied: bool
inherit: bool
Implementations
sourceimpl SupportedCompositeAlpha
impl SupportedCompositeAlpha
sourcepub fn none() -> SupportedCompositeAlpha
pub fn none() -> SupportedCompositeAlpha
Builds a SupportedCompositeAlpha
with all fields set to false.
sourcepub fn supports(&self, value: CompositeAlpha) -> bool
pub fn supports(&self, value: CompositeAlpha) -> bool
Returns true if the given CompositeAlpha
is in this list.
sourcepub fn iter(&self) -> impl Iterator<Item = CompositeAlpha>
pub fn iter(&self) -> impl Iterator<Item = CompositeAlpha>
Returns an iterator to the list of supported composite alpha.
Trait Implementations
sourceimpl Clone for SupportedCompositeAlpha
impl Clone for SupportedCompositeAlpha
sourcefn clone(&self) -> SupportedCompositeAlpha
fn clone(&self) -> SupportedCompositeAlpha
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SupportedCompositeAlpha
impl Debug for SupportedCompositeAlpha
sourceimpl From<CompositeAlphaFlagsKHR> for SupportedCompositeAlpha
impl From<CompositeAlphaFlagsKHR> for SupportedCompositeAlpha
sourcefn from(val: CompositeAlphaFlagsKHR) -> SupportedCompositeAlpha
fn from(val: CompositeAlphaFlagsKHR) -> SupportedCompositeAlpha
Performs the conversion.
sourceimpl PartialEq<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl PartialEq<SupportedCompositeAlpha> for SupportedCompositeAlpha
sourcefn eq(&self, other: &SupportedCompositeAlpha) -> bool
fn eq(&self, other: &SupportedCompositeAlpha) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SupportedCompositeAlpha) -> bool
fn ne(&self, other: &SupportedCompositeAlpha) -> bool
This method tests for !=
.
impl Copy for SupportedCompositeAlpha
impl Eq for SupportedCompositeAlpha
impl StructuralEq for SupportedCompositeAlpha
impl StructuralPartialEq for SupportedCompositeAlpha
Auto Trait Implementations
impl RefUnwindSafe for SupportedCompositeAlpha
impl Send for SupportedCompositeAlpha
impl Sync for SupportedCompositeAlpha
impl Unpin for SupportedCompositeAlpha
impl UnwindSafe for SupportedCompositeAlpha
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more