pub struct StyledWord {
pub text: String,
pub style: TextStyle,
}Expand description
One word plus the style it should be drawn in — the atomic unit
wrap_spans arranges into RichLines.
Fields§
§text: String§style: TextStyleTrait Implementations§
Source§impl Clone for StyledWord
impl Clone for StyledWord
Source§fn clone(&self) -> StyledWord
fn clone(&self) -> StyledWord
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 StyledWord
impl RefUnwindSafe for StyledWord
impl Send for StyledWord
impl Sync for StyledWord
impl Unpin for StyledWord
impl UnsafeUnpin for StyledWord
impl UnwindSafe for StyledWord
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