pub struct RenderResult {
pub size: Size,
pub has_more: bool,
pub svg: Option<String>,
}Expand description
The result of the rendering process.
This struct is returned by implementations of the Element::render method. It contains
the size of the area that has been written to (measured from the origin of the area that was
provided to the render method) and information about additional content that did not fit in the
provided area.
See the Rendering Process section of the crate documentation for more information on the rendering process.
Fields§
§size: SizeThe size of the area that has been written to, starting from the origin of the provided area.
has_more: boolIndicates whether the element contains more content that did not fit in the provided area.
svg: Option<String>Optional SVG string (useful for LaTeX and Mermaid diagrams)
Trait Implementations§
Source§impl Clone for RenderResult
impl Clone for RenderResult
Source§fn clone(&self) -> RenderResult
fn clone(&self) -> RenderResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderResult
impl Debug for RenderResult
Source§impl Default for RenderResult
impl Default for RenderResult
Source§fn default() -> RenderResult
fn default() -> RenderResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for RenderResult
impl PartialEq for RenderResult
Source§impl PartialOrd for RenderResult
impl PartialOrd for RenderResult
impl StructuralPartialEq for RenderResult
Auto Trait Implementations§
impl Freeze for RenderResult
impl RefUnwindSafe for RenderResult
impl Send for RenderResult
impl Sync for RenderResult
impl Unpin for RenderResult
impl UnwindSafe for RenderResult
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,
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>
Converts
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>
Converts
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.