Enum TextChangeType
pub enum TextChangeType {
Insert,
Delete,
Replace,
Unknown,
}Expand description
The type of text modification.
Variants§
Insert
Text was inserted.
Delete
Text was deleted.
Replace
Text was replaced (simultaneous insert + delete).
Unknown
Change type could not be determined (macOS fallback).
Trait Implementations§
§impl Clone for TextChangeType
impl Clone for TextChangeType
§fn clone(&self) -> TextChangeType
fn clone(&self) -> TextChangeType
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 more§impl Debug for TextChangeType
impl Debug for TextChangeType
§impl<'de> Deserialize<'de> for TextChangeType
impl<'de> Deserialize<'de> for TextChangeType
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextChangeType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextChangeType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for TextChangeType
impl Hash for TextChangeType
§impl PartialEq for TextChangeType
impl PartialEq for TextChangeType
§impl Serialize for TextChangeType
impl Serialize for TextChangeType
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TextChangeType
impl Eq for TextChangeType
impl StructuralPartialEq for TextChangeType
Auto Trait Implementations§
impl Freeze for TextChangeType
impl RefUnwindSafe for TextChangeType
impl Send for TextChangeType
impl Sync for TextChangeType
impl Unpin for TextChangeType
impl UnwindSafe for TextChangeType
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