Struct telexide_fork::model::TextBlock
source · pub struct TextBlock {
pub offset: usize,
pub length: usize,
}Expand description
An object describing a part of a text
Fields§
§offset: usizeOffset in UTF-16 code units to the start of the entity
length: usizeLength of the entity in UTF-16 code units
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for TextBlock
impl<'de> Deserialize<'de> for TextBlock
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<TextBlock> for TextBlock
impl PartialEq<TextBlock> for TextBlock
impl Eq for TextBlock
impl StructuralEq for TextBlock
impl StructuralPartialEq for TextBlock
Auto Trait Implementations§
impl RefUnwindSafe for TextBlock
impl Send for TextBlock
impl Sync for TextBlock
impl Unpin for TextBlock
impl UnwindSafe for TextBlock
Blanket Implementations§
source§impl<T> CloneAny for Twhere
T: Any + Clone,
impl<T> CloneAny for Twhere T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global>where T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global>where T: Sync,
fn clone_any_send_sync( &self ) -> Box<dyn CloneAny + Send + Sync + 'static, Global>where T: Send + Sync,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.