Struct blade_graphics::Extent
source · #[repr(C)]pub struct Extent {
pub width: u32,
pub height: u32,
pub depth: u32,
}Fields§
§width: u32§height: u32§depth: u32Implementations§
source§impl Extent
impl Extent
pub fn max_mip_levels(&self) -> u32
pub fn at_mip_level(&self, level: u32) -> Self
Trait Implementations§
source§impl PartialEq for Extent
impl PartialEq for Extent
impl Copy for Extent
impl Eq for Extent
impl StructuralEq for Extent
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnwindSafe for Extent
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.