pub struct TextEntity {
pub offset: i32,
pub length: i32,
pub type: TextEntityType,
}
Expand description
Represents a part of the text that needs to be formatted in some unusual way
Fields§
§offset: i32
Offset of the entity, in UTF-16 code units
length: i32
Length of the entity, in UTF-16 code units
type: TextEntityType
Type of the entity
Trait Implementations§
Source§impl Clone for TextEntity
impl Clone for TextEntity
Source§fn clone(&self) -> TextEntity
fn clone(&self) -> TextEntity
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 TextEntity
impl Debug for TextEntity
Source§impl<'de> Deserialize<'de> for TextEntity
impl<'de> Deserialize<'de> for TextEntity
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
Source§impl PartialEq for TextEntity
impl PartialEq for TextEntity
Source§impl Serialize for TextEntity
impl Serialize for TextEntity
impl StructuralPartialEq for TextEntity
Auto Trait Implementations§
impl Freeze for TextEntity
impl RefUnwindSafe for TextEntity
impl Send for TextEntity
impl Sync for TextEntity
impl Unpin for TextEntity
impl UnwindSafe for TextEntity
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