pub struct ParagraphBuilder;
Implementations§
Source§impl ParagraphBuilder
impl ParagraphBuilder
pub fn push_style(&mut self, _style: &TextStyle) -> &mut Self
pub fn pop(&mut self) -> &mut Self
pub fn peek_style(&mut self) -> TextStyle
pub fn add_text(&mut self, _str: impl AsRef<str>) -> &mut Self
pub fn add_placeholder( &mut self, _placeholder_style: &PlaceholderStyle, ) -> &mut Self
pub fn build(&mut self) -> Paragraph
pub fn reset(&mut self)
pub fn new( _style: &ParagraphStyle, _font_collection: impl Into<FontCollection>, ) -> Self
Auto Trait Implementations§
impl Freeze for ParagraphBuilder
impl RefUnwindSafe for ParagraphBuilder
impl Send for ParagraphBuilder
impl Sync for ParagraphBuilder
impl Unpin for ParagraphBuilder
impl UnwindSafe for ParagraphBuilder
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