pub struct Extent2d { /* private fields */ }Expand description
A VkExtent2D.
Implementations§
Source§impl Extent2d
impl Extent2d
pub fn builder() -> Extent2dBuilder
pub unsafe fn from_raw(raw: VkExtent2D) -> Extent2d
pub fn width<'a>(&'a self) -> u32
pub fn height<'a>(&'a self) -> u32
pub fn set_width<'m>(&mut self, width: u32)
pub fn set_height<'m>(&mut self, height: u32)
pub fn as_raw(&self) -> &VkExtent2D
Trait Implementations§
Source§impl From<Extent2d> for VkExtent2D
impl From<Extent2d> for VkExtent2D
Source§fn from(f: Extent2d) -> VkExtent2D
fn from(f: Extent2d) -> VkExtent2D
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Extent2d
impl RefUnwindSafe for Extent2d
impl Send for Extent2d
impl Sync for Extent2d
impl Unpin for Extent2d
impl UnsafeUnpin for Extent2d
impl UnwindSafe for Extent2d
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