pub struct TextBufferBuilder { /* private fields */ }Expand description
A builder-pattern type to construct TextBuffer objects.
Implementations§
Source§impl TextBufferBuilder
impl TextBufferBuilder
pub fn enable_undo(self, enable_undo: bool) -> Self
pub fn tag_table(self, tag_table: &TextTagTable) -> Self
pub fn text(self, text: impl Into<GString>) -> Self
Sourcepub fn build(self) -> TextBuffer
pub fn build(self) -> TextBuffer
Build the TextBuffer.
Auto Trait Implementations§
impl Freeze for TextBufferBuilder
impl RefUnwindSafe for TextBufferBuilder
impl !Send for TextBufferBuilder
impl !Sync for TextBufferBuilder
impl Unpin for TextBufferBuilder
impl UnwindSafe for TextBufferBuilder
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