pub struct RenderOptions {Show 15 fields
pub backend: RenderBackend,
pub theme: Theme,
pub source_url_template: Option<String>,
pub call_opacity: u8,
pub call_width: f32,
pub boundary_width: f32,
pub density_aware_exposure: bool,
pub density_reference_calls: usize,
pub pdf_dpi: f64,
pub pdf_call_dpi: Option<f64>,
pub pdf_call_tile_size: u32,
pub pdf_resume: bool,
pub pdf_restart: bool,
pub pdf_stop_after_tiles: Option<usize>,
pub pdf_compression_workers: usize,
}Fields§
§backend: RenderBackend§theme: Theme§source_url_template: Option<String>Optional HTTP(S) template used by interactive HTML endpoint links.
It must contain {revision}, {path}, and {line} placeholders.
call_opacity: u8§call_width: f32§boundary_width: f32§density_aware_exposure: boolReduce per-call pigment on very large graphs while preserving every independently composited stroke and its cumulative darkening.
density_reference_calls: usize§pdf_dpi: f64Physical resolution used to convert raster pixels to PDF points.
pdf_call_dpi: Option<f64>Optional independent resolution for the raster call layer embedded in
PDF output. The page geometry continues to use pdf_dpi.
pdf_call_tile_size: u32Maximum core width and height of one PDF call-layer tile in pixels.
pdf_resume: boolRetain and reuse checksummed PDF call-layer tiles beside the output.
pdf_restart: boolDiscard an existing PDF tile cache before starting a resumable render.
pdf_stop_after_tiles: Option<usize>Internal deterministic interruption hook used by resume tests.
pdf_compression_workers: usizeMaximum concurrent PDF tile compression jobs. Zero selects a bounded hardware-aware default.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RenderOptions
impl Debug for RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more