pub struct RenderedDocument { /* private fields */ }
Expand description
A rendered hypertext document that consists of lines of formatted text and links.
Implementations§
Source§impl RenderedDocument
impl RenderedDocument
Sourcepub fn new(constraint: XY<usize>) -> RenderedDocument
pub fn new(constraint: XY<usize>) -> RenderedDocument
Creates a new rendered document with the given size constraint.
The size constraint is used to check whether a cached document can be reused or whether it has to be rendered for the new constraint. It is not enforced by this struct!
Sourcepub fn push_line<I: IntoIterator<Item = Element>>(&mut self, line: I)
pub fn push_line<I: IntoIterator<Item = Element>>(&mut self, line: I)
Appends a rendered line to the document.
Trait Implementations§
Source§impl Clone for RenderedDocument
impl Clone for RenderedDocument
Source§fn clone(&self) -> RenderedDocument
fn clone(&self) -> RenderedDocument
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 moreAuto Trait Implementations§
impl Freeze for RenderedDocument
impl RefUnwindSafe for RenderedDocument
impl Send for RenderedDocument
impl Sync for RenderedDocument
impl Unpin for RenderedDocument
impl UnwindSafe for RenderedDocument
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