pub struct StyledTextSpanInfo {
pub start: usize,
pub end: usize,
pub color: [f32; 4],
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub strikethrough: bool,
pub link_url: Option<String>,
}Expand description
A span within styled text (for rich_text element)
Fields§
§start: usizeStart byte index
end: usizeEnd byte index (exclusive)
color: [f32; 4]RGBA color
bold: boolWhether span is bold
italic: boolWhether span is italic
underline: boolWhether span has underline
strikethrough: boolWhether span has strikethrough
link_url: Option<String>Optional link URL
Trait Implementations§
Source§impl Clone for StyledTextSpanInfo
impl Clone for StyledTextSpanInfo
Source§fn clone(&self) -> StyledTextSpanInfo
fn clone(&self) -> StyledTextSpanInfo
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 StyledTextSpanInfo
impl RefUnwindSafe for StyledTextSpanInfo
impl Send for StyledTextSpanInfo
impl Sync for StyledTextSpanInfo
impl Unpin for StyledTextSpanInfo
impl UnsafeUnpin for StyledTextSpanInfo
impl UnwindSafe for StyledTextSpanInfo
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