pub struct RichTextSpan { /* private fields */ }Implementations§
Source§impl RichTextSpan
impl RichTextSpan
pub fn new(text: impl Into<String>) -> Self
pub fn font_stack(self, stack: FontStack, size: f32) -> Self
pub fn font_family(self, family: FontFamily) -> Self
pub fn font_size(self, size: f32) -> Self
pub fn font_weight(self, weight: FontWeight) -> Self
pub fn font_style(self, style: FontStyle) -> Self
pub fn bold(self) -> Self
pub fn italic(self) -> Self
pub fn text_color(self, color: u32) -> Self
pub fn background_color(self, color: u32) -> Self
pub fn underline(self) -> Self
pub fn strikethrough(self) -> Self
Trait Implementations§
Source§impl Clone for RichTextSpan
impl Clone for RichTextSpan
Source§fn clone(&self) -> RichTextSpan
fn clone(&self) -> RichTextSpan
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 moreSource§impl Debug for RichTextSpan
impl Debug for RichTextSpan
Source§impl PartialEq for RichTextSpan
impl PartialEq for RichTextSpan
impl StructuralPartialEq for RichTextSpan
Auto Trait Implementations§
impl Freeze for RichTextSpan
impl RefUnwindSafe for RichTextSpan
impl Send for RichTextSpan
impl Sync for RichTextSpan
impl Unpin for RichTextSpan
impl UnsafeUnpin for RichTextSpan
impl UnwindSafe for RichTextSpan
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