pub struct RenderKey {
pub page: Option<u32>,
pub density: u32,
pub ext: &'static str,
}Expand description
Render-shaping inputs that go into the cache key alongside source
bytes. Two calls with the same RenderKey MUST produce
byte-equivalent output (modulo metadata variation tools like
ImageMagick are known to introduce — see compare_outputs_strict
audit in the spawn paths).
Fields§
§page: Option<u32>1-based page selector (graphicx convention). None ⇒ default.
density: u32DPI for raster conversions; 0 for pure vector (SVG) paths.
ext: &'static strTarget format, derived from destination extension (lowercase, no dot).
e.g. "png", "svg", "jpg". Empty if missing.
Trait Implementations§
impl Copy for RenderKey
impl Eq for RenderKey
impl StructuralPartialEq for RenderKey
Auto Trait Implementations§
impl Freeze for RenderKey
impl RefUnwindSafe for RenderKey
impl Send for RenderKey
impl Sync for RenderKey
impl Unpin for RenderKey
impl UnsafeUnpin for RenderKey
impl UnwindSafe for RenderKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more