pub struct TextStylingInfo {
pub offset: usize,
pub length: usize,
pub styling_info: Vec<String>,
}Expand description
Styling information for a range of text.
Fields§
§offset: usizeCharacter offset where styling starts.
length: usizeCharacter length of the styled range.
styling_info: Vec<String>List of styling tags applied.
Trait Implementations§
Source§impl Clone for TextStylingInfo
impl Clone for TextStylingInfo
Source§fn clone(&self) -> TextStylingInfo
fn clone(&self) -> TextStylingInfo
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 moreSource§impl Debug for TextStylingInfo
impl Debug for TextStylingInfo
Source§impl<'de> Deserialize<'de> for TextStylingInfo
impl<'de> Deserialize<'de> for TextStylingInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextStylingInfo
impl RefUnwindSafe for TextStylingInfo
impl Send for TextStylingInfo
impl Sync for TextStylingInfo
impl Unpin for TextStylingInfo
impl UnsafeUnpin for TextStylingInfo
impl UnwindSafe for TextStylingInfo
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