pub struct RenderLimits { /* private fields */ }Expand description
Explicit raster and encoded-output ceilings for one generation request.
Implementations§
Source§impl RenderLimits
impl RenderLimits
pub const fn new( max_width: NonZeroU32, max_height: NonZeroU32, max_canvas_bytes: NonZeroUsize, max_encoded_bytes: NonZeroUsize, ) -> Self
pub const fn max_width(self) -> u32
pub const fn max_height(self) -> u32
pub const fn max_canvas_bytes(self) -> usize
pub const fn max_encoded_bytes(self) -> usize
Trait Implementations§
Source§impl Clone for RenderLimits
impl Clone for RenderLimits
impl Copy for RenderLimits
Source§impl Debug for RenderLimits
impl Debug for RenderLimits
Source§impl Default for RenderLimits
impl Default for RenderLimits
impl Eq for RenderLimits
Source§impl PartialEq for RenderLimits
impl PartialEq for RenderLimits
impl StructuralPartialEq for RenderLimits
Auto Trait Implementations§
impl Forget for RenderLimits
impl Freeze for RenderLimits
impl Move for RenderLimits
impl RefUnwindSafe for RenderLimits
impl Send for RenderLimits
impl Sync for RenderLimits
impl Unpin for RenderLimits
impl UnsafeUnpin for RenderLimits
impl UnwindSafe for RenderLimits
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