pub struct StyledChar {
pub ch: char,
pub font_family: String,
pub font_size: f64,
pub font_weight: u32,
pub font_style: FontStyle,
pub color: Color,
pub href: Option<String>,
pub text_decoration: TextDecoration,
pub letter_spacing: f64,
}Expand description
A styled character for multi-style line breaking.
Fields§
§ch: char§font_family: String§font_size: f64§font_weight: u32§font_style: FontStyle§color: Color§href: Option<String>§text_decoration: TextDecoration§letter_spacing: f64Trait Implementations§
Source§impl Clone for StyledChar
impl Clone for StyledChar
Source§fn clone(&self) -> StyledChar
fn clone(&self) -> StyledChar
Returns a duplicate of the value. Read more
1.0.0 · 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 StyledChar
impl RefUnwindSafe for StyledChar
impl Send for StyledChar
impl Sync for StyledChar
impl Unpin for StyledChar
impl UnsafeUnpin for StyledChar
impl UnwindSafe for StyledChar
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