pub struct Page<R: Read + Seek> { /* private fields */ }Implementations§
Source§impl<R: Read + Seek> Page<R>
impl<R: Read + Seek> Page<R>
pub fn virtual_page(&self) -> &Option<VirtualPage>
pub fn page_model(&self) -> &PageModel
pub fn template(&mut self) -> Result<Option<&TemplateDescriptor>>
pub fn shape_groups(&mut self) -> Result<&HashMap<ShapeGroupUuid, ShapeGroup>>
pub fn points_files(&mut self) -> Result<&HashMap<PointsUuid, Vec<PointsFile>>>
Sourcepub fn is_empty(&mut self) -> Result<bool>
pub fn is_empty(&mut self) -> Result<bool>
Returns true when the page has no renderable strokes — either no shape
groups exist for it, or every shape group is empty. Lazily loads shape
group metadata if it has not been read yet.
pub fn render(&mut self) -> Result<DrawTarget>
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Page<R>
impl<R> RefUnwindSafe for Page<R>
impl<R> Send for Page<R>
impl<R> Sync for Page<R>
impl<R> Unpin for Page<R>
impl<R> UnsafeUnpin for Page<R>
impl<R> UnwindSafe for Page<R>
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