pub struct Document<'f> { /* private fields */ }Implementations§
Source§impl<'f> Document<'f>
impl<'f> Document<'f>
pub fn new(font_library: &'f FontLibrary) -> Self
pub fn font_library(&self) -> &'f FontLibrary
pub fn used_glyphs(&self) -> &[GlyphSet] ⓘ
pub fn add_image(&mut self, image: Image) -> ImageRef
pub fn images(&self) -> &[Image]
pub fn set_zoom_mode(&mut self, zoom_mode: ZoomMode)
pub fn zoom_mode(&self) -> ZoomMode
pub fn set_layout_mode(&mut self, layout_mode: LayoutMode)
pub fn layout_mode(&self) -> LayoutMode
pub fn metadata(&mut self) -> &mut Metadata
pub fn capabilities(&self) -> CapabilitySet
pub fn encode(&self) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl<'f> Freeze for Document<'f>
impl<'f> RefUnwindSafe for Document<'f>
impl<'f> Send for Document<'f>
impl<'f> Sync for Document<'f>
impl<'f> Unpin for Document<'f>
impl<'f> UnwindSafe for Document<'f>
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