pub struct RenderSession { /* private fields */ }Expand description
Opaque, backend-backed iterative render session.
Implementations§
Source§impl RenderSession
impl RenderSession
Sourcepub fn with_warning(self, warning: Option<Diagnostic>) -> Self
pub fn with_warning(self, warning: Option<Diagnostic>) -> Self
Attach a non-fatal warning to this session. The warning is appended to
RenderResult::warnings on each call to RenderSession::render.
pub fn page_count(&self) -> usize
pub fn render(&self, opts: &RenderOptions) -> Result<RenderResult, RenderError>
Auto Trait Implementations§
impl Freeze for RenderSession
impl !RefUnwindSafe for RenderSession
impl Send for RenderSession
impl Sync for RenderSession
impl Unpin for RenderSession
impl UnsafeUnpin for RenderSession
impl !UnwindSafe for RenderSession
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