pub trait DeltaValue: Debug + Sized {
    // Required methods
    fn value_extend(&mut self, other: Self) -> Result<(), Self>;
    fn take(&mut self, length: usize) -> Self;
    fn length(&self) -> usize;
}
Expand description

The value of DeltaItem::Insert

Required Methods§

source

fn value_extend(&mut self, other: Self) -> Result<(), Self>

the other will be merged into self

source

fn take(&mut self, length: usize) -> Self

takes the first number of length elements

source

fn length(&self) -> usize

the length of the value

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DeltaValue for String

source§

fn value_extend(&mut self, other: Self) -> Result<(), Self>

source§

fn take(&mut self, length: usize) -> Self

source§

fn length(&self) -> usize

source§

impl<T: Debug> DeltaValue for Vec<T>

source§

fn value_extend(&mut self, other: Self) -> Result<(), Self>

source§

fn take(&mut self, length: usize) -> Self

source§

fn length(&self) -> usize

Implementors§