DeltaValue

Trait DeltaValue 

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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 DeltaValue for SmallVec<[IdFull; 1]>

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§