pub struct TreeBuilder<'a, B: Brush> { /* private fields */ }Expand description
Builder for constructing a text layout with a tree of attributes.
Implementations§
Source§impl<B: Brush> TreeBuilder<'_, B>
impl<B: Brush> TreeBuilder<'_, B>
pub fn push_style_span(&mut self, style: TextStyle<'_, '_, B>)
pub fn push_style_modification_span<'s, 'iter>(
&mut self,
properties: impl IntoIterator<Item = &'iter StyleProperty<'s, B>>,
)where
B: 'iter,
's: 'iter,
pub fn pop_style_span(&mut self)
pub fn push_text(&mut self, text: &str)
pub fn push_inline_box(&mut self, inline_box: InlineBox)
pub fn set_white_space_mode(&mut self, white_space_collapse: WhiteSpaceCollapse)
pub fn build_into(self, layout: &mut Layout<B>) -> String
pub fn build(self) -> (Layout<B>, String)
Auto Trait Implementations§
impl<'a, B> Freeze for TreeBuilder<'a, B>
impl<'a, B> !RefUnwindSafe for TreeBuilder<'a, B>
impl<'a, B> Send for TreeBuilder<'a, B>where
B: Send,
impl<'a, B> Sync for TreeBuilder<'a, B>where
B: Sync,
impl<'a, B> Unpin for TreeBuilder<'a, B>
impl<'a, B> UnsafeUnpin for TreeBuilder<'a, B>
impl<'a, B> !UnwindSafe for TreeBuilder<'a, B>
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