Expand description
Literal Text
A literal text that shall be displayed in the document.
use docx::document::{Text, TextSpace};
let text = Text::from("text");
let text = Text::from(String::from("text"));
let text = Text::from(("text", TextSpace::Preserve));
Fields
space: Option<TextSpace>
Specifies how to handle whitespace
text: Cow<'a, str>
Specifies a literal text
Trait Implementations
sourceimpl<'a> From<Text<'a>> for RunContent<'a>
impl<'a> From<Text<'a>> for RunContent<'a>
sourcefn from(original: Text<'a>) -> RunContent<'a>
fn from(original: Text<'a>) -> RunContent<'a>
Converts to this type from the input type.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnwindSafe for Text<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more