Struct vulkano::swapchain::SupportedSurfaceTransforms
source · [−]#[non_exhaustive]pub struct SupportedSurfaceTransforms {
pub identity: bool,
pub rotate90: bool,
pub rotate180: bool,
pub rotate270: bool,
pub horizontal_mirror: bool,
pub horizontal_mirror_rotate90: bool,
pub horizontal_mirror_rotate180: bool,
pub horizontal_mirror_rotate270: bool,
pub inherit: bool,
}
Expand description
List of supported composite alpha modes.
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.identity: bool
rotate90: bool
rotate180: bool
rotate270: bool
horizontal_mirror: bool
horizontal_mirror_rotate90: bool
horizontal_mirror_rotate180: bool
horizontal_mirror_rotate270: bool
inherit: bool
Implementations
sourceimpl SupportedSurfaceTransforms
impl SupportedSurfaceTransforms
sourcepub fn none() -> SupportedSurfaceTransforms
pub fn none() -> SupportedSurfaceTransforms
Builds a SupportedSurfaceTransforms
with all fields set to false.
sourcepub fn supports(&self, value: SurfaceTransform) -> bool
pub fn supports(&self, value: SurfaceTransform) -> bool
Returns true if the given SurfaceTransform
is in this list.
sourcepub fn iter(&self) -> impl Iterator<Item = SurfaceTransform>
pub fn iter(&self) -> impl Iterator<Item = SurfaceTransform>
Returns an iterator to the list of supported composite alpha.
Trait Implementations
sourceimpl Clone for SupportedSurfaceTransforms
impl Clone for SupportedSurfaceTransforms
sourcefn clone(&self) -> SupportedSurfaceTransforms
fn clone(&self) -> SupportedSurfaceTransforms
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 SupportedSurfaceTransforms
impl Debug for SupportedSurfaceTransforms
sourceimpl From<SurfaceTransformFlagsKHR> for SupportedSurfaceTransforms
impl From<SurfaceTransformFlagsKHR> for SupportedSurfaceTransforms
sourcefn from(val: SurfaceTransformFlagsKHR) -> Self
fn from(val: SurfaceTransformFlagsKHR) -> Self
Performs the conversion.
sourceimpl PartialEq<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl PartialEq<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
sourcefn eq(&self, other: &SupportedSurfaceTransforms) -> bool
fn eq(&self, other: &SupportedSurfaceTransforms) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SupportedSurfaceTransforms) -> bool
fn ne(&self, other: &SupportedSurfaceTransforms) -> bool
This method tests for !=
.
impl Copy for SupportedSurfaceTransforms
impl Eq for SupportedSurfaceTransforms
impl StructuralEq for SupportedSurfaceTransforms
impl StructuralPartialEq for SupportedSurfaceTransforms
Auto Trait Implementations
impl RefUnwindSafe for SupportedSurfaceTransforms
impl Send for SupportedSurfaceTransforms
impl Sync for SupportedSurfaceTransforms
impl Unpin for SupportedSurfaceTransforms
impl UnwindSafe for SupportedSurfaceTransforms
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