pub struct TextBuilder { /* private fields */ }Implementations§
Source§impl TextBuilder
impl TextBuilder
pub fn new(content: impl Into<String>) -> Self
pub fn style(self, style: Style) -> Self
pub fn bookmark(self, bookmark: impl Into<String>) -> Self
pub fn break_before(self, break_before: BreakType) -> Self
pub fn fixed(self, fixed: bool) -> Self
pub fn wrap(self, wrap: bool) -> Self
pub fn min_presence_ahead(self, value: f32) -> Self
pub fn orphans(self, value: usize) -> Self
pub fn widows(self, value: usize) -> Self
pub fn span(self, content: impl Into<String>, style: Style) -> Self
pub fn push_span( &mut self, content: impl Into<String>, style: Style, ) -> &mut Self
pub fn build(self) -> Text
Trait Implementations§
Source§impl Debug for TextBuilder
impl Debug for TextBuilder
Source§impl From<TextBuilder> for Component
impl From<TextBuilder> for Component
Source§fn from(value: TextBuilder) -> Self
fn from(value: TextBuilder) -> Self
Converts to this type from the input type.
Source§impl From<TextBuilder> for Text
impl From<TextBuilder> for Text
Source§fn from(value: TextBuilder) -> Self
fn from(value: TextBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TextBuilder
impl RefUnwindSafe for TextBuilder
impl Send for TextBuilder
impl Sync for TextBuilder
impl Unpin for TextBuilder
impl UnsafeUnpin for TextBuilder
impl UnwindSafe for TextBuilder
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