pub struct Run {
pub text: String,
pub format: TextFormat,
}Expand description
A run of text with consistent formatting
Fields§
§text: String§format: TextFormatImplementations§
Source§impl Run
impl Run
Sourcepub fn with_format(self, format: TextFormat) -> Self
pub fn with_format(self, format: TextFormat) -> Self
Apply formatting
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnwindSafe for Run
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