Struct genpdf::elements::FramedElement [−][src]
pub struct FramedElement<E: Element> { /* fields omitted */ }
Expand description
Adds a frame around the wrapped element.
Examples
Direct usage:
use genpdf::elements; let p = elements::FramedElement::new( elements::Paragraph::new("text"), );
Using Element::framed
:
use genpdf::{elements, Element as _}; let p = elements::Paragraph::new("text").framed();
Implementations
Creates a new framed element that wraps the given element.
Trait Implementations
Returns the “default value” for a type. Read more
Renders this element to the given area using the given style and font cache. Read more
Draws a frame around this element.
Adds a padding to this element.
Auto Trait Implementations
impl<E> RefUnwindSafe for FramedElement<E> where
E: RefUnwindSafe,
impl<E> Send for FramedElement<E> where
E: Send,
impl<E> Sync for FramedElement<E> where
E: Sync,
impl<E> Unpin for FramedElement<E> where
E: Unpin,
impl<E> UnwindSafe for FramedElement<E> where
E: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more