pub enum Content {
Text(Text),
Image(Image),
Link(Link),
Paragraph(Paragraph),
Custom(Box<dyn Draw>),
}Expand description
One piece of composed page content.
Variants§
Text(Text)
A line of text.
Image(Image)
A placed image.
Link(Link)
A clickable link area.
Paragraph(Paragraph)
A wrapped, aligned block of text.
Custom(Box<dyn Draw>)
Anything implementing Draw.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Content
impl !Sync for Content
impl !UnwindSafe for Content
impl Freeze for Content
impl Send for Content
impl Unpin for Content
impl UnsafeUnpin for Content
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