pub struct ImageBudget { /* private fields */ }Expand description
Immutable resource limits retained with an Image2d.
Implementations§
Source§impl ImageBudget
impl ImageBudget
Sourcepub fn new(
max_width: u32,
max_height: u32,
max_bytes: usize,
) -> Result<Self, ImageError>
pub fn new( max_width: u32, max_height: u32, max_bytes: usize, ) -> Result<Self, ImageError>
Creates non-zero image dimension and byte limits.
Sourcepub const fn max_height(self) -> u32
pub const fn max_height(self) -> u32
Returns maximum image height in physical texels.
Trait Implementations§
Source§impl Clone for ImageBudget
impl Clone for ImageBudget
impl Copy for ImageBudget
Source§impl Debug for ImageBudget
impl Debug for ImageBudget
Source§impl Default for ImageBudget
impl Default for ImageBudget
impl Eq for ImageBudget
Source§impl PartialEq for ImageBudget
impl PartialEq for ImageBudget
impl StructuralPartialEq for ImageBudget
Auto Trait Implementations§
impl Freeze for ImageBudget
impl RefUnwindSafe for ImageBudget
impl Send for ImageBudget
impl Sync for ImageBudget
impl Unpin for ImageBudget
impl UnsafeUnpin for ImageBudget
impl UnwindSafe for ImageBudget
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.