pub struct RenderLimits {
pub max_render_pixels: u64,
pub max_render_side: u32,
pub max_input_bytes: u64,
}Expand description
Bounds on one render, checked before anything is allocated (render-too-large).
Added in 0.2.0.
Fields§
§max_render_pixels: u64Most pixels in one tile. Default 16,777,216 (4096 × 4096), iOS Safari’s per-canvas cap.
max_render_side: u32Most pixels on either side of one tile. Default 16,384.
max_input_bytes: u64Most input bytes a backend that needs the whole file in memory (hayro) reads. Default 1 GiB.
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