pub struct LineDelta {
pub start: u32,
pub old_lines: u32,
pub new_lines: u32,
}Expand description
How the line count changed under one edit — the scope signal a buffer
mutation reports up to the refresh tree. start is the first line the edit
touched; the counts let a consumer tell an in-place edit (old == new,
damage is local) from one that shifted every line below (old != new,
damage runs to the end of the document).
Fields§
§start: u32§old_lines: u32§new_lines: u32Implementations§
Trait Implementations§
impl Copy for LineDelta
Source§impl<'de> Deserialize<'de> for LineDelta
impl<'de> Deserialize<'de> for LineDelta
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
impl Eq for LineDelta
Source§impl JsonSchema for LineDelta
impl JsonSchema for LineDelta
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for LineDelta
Auto Trait Implementations§
impl Freeze for LineDelta
impl RefUnwindSafe for LineDelta
impl Send for LineDelta
impl Sync for LineDelta
impl Unpin for LineDelta
impl UnsafeUnpin for LineDelta
impl UnwindSafe for LineDelta
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