pub struct TextBuilder { /* private fields */ }Expand description
Builder for Text.
Implementations§
Source§impl TextBuilder
impl TextBuilder
pub fn text<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cache_control<VALUE: Into<CacheControl>>( &mut self, value: VALUE, ) -> &mut Self
Trait Implementations§
Source§impl Clone for TextBuilder
impl Clone for TextBuilder
Source§fn clone(&self) -> TextBuilder
fn clone(&self) -> TextBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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