Struct vulkano::swapchain::RectangleLayer
source · [−]Expand description
Represents a rectangular region on an image layer.
Fields
offset: [i32; 2]
Coordinates in pixels of the top-left hand corner of the rectangle.
extent: [u32; 2]
Dimensions in pixels of the rectangle.
layer: u32
The layer of the image. For images with only one layer, the value of layer must be 0.
Implementations
sourceimpl RectangleLayer
impl RectangleLayer
sourcepub fn is_compatible_with<W>(&self, swapchain: &Swapchain<W>) -> bool
pub fn is_compatible_with<W>(&self, swapchain: &Swapchain<W>) -> bool
Returns true if this rectangle layer is compatible with swapchain.
Trait Implementations
sourceimpl Clone for RectangleLayer
impl Clone for RectangleLayer
sourcefn clone(&self) -> RectangleLayer
fn clone(&self) -> RectangleLayer
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 RectangleLayer
impl Debug for RectangleLayer
sourceimpl From<&'_ RectangleLayer> for RectLayerKHR
impl From<&'_ RectangleLayer> for RectLayerKHR
sourcefn from(val: &RectangleLayer) -> Self
fn from(val: &RectangleLayer) -> Self
Performs the conversion.
sourceimpl PartialEq<RectangleLayer> for RectangleLayer
impl PartialEq<RectangleLayer> for RectangleLayer
sourcefn eq(&self, other: &RectangleLayer) -> bool
fn eq(&self, other: &RectangleLayer) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RectangleLayer) -> bool
fn ne(&self, other: &RectangleLayer) -> bool
This method tests for !=
.
impl Copy for RectangleLayer
impl Eq for RectangleLayer
impl StructuralEq for RectangleLayer
impl StructuralPartialEq for RectangleLayer
Auto Trait Implementations
impl RefUnwindSafe for RectangleLayer
impl Send for RectangleLayer
impl Sync for RectangleLayer
impl Unpin for RectangleLayer
impl UnwindSafe for RectangleLayer
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