Struct quill_delta::DeltaOperation [−][src]
Fields
kind: OpKind
attributes: HashMap<String, Value>
Methods
impl DeltaOperation
[src]
impl DeltaOperation
pub fn insert<V: Into<Value>>(value: V) -> Self
[src]
pub fn insert<V: Into<Value>>(value: V) -> Self
pub fn retain(value: usize) -> Self
[src]
pub fn retain(value: usize) -> Self
pub fn delete(value: usize) -> Self
[src]
pub fn delete(value: usize) -> Self
Delete a value from the input
pub fn attr<K: Into<String>, V: Into<Value>>(self, key: K, value: V) -> Self
[src]
pub fn attr<K: Into<String>, V: Into<Value>>(self, key: K, value: V) -> Self
set the attribute in a shorthand way
extern crate quill_delta; use quill_delta::DeltaOperation; let op = DeltaOperation::insert("Hallo") .attr("font", "green") .attr("size", 10);
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
get the length
Trait Implementations
impl FromIterator<DeltaOperation> for Delta
[src]
impl FromIterator<DeltaOperation> for Delta
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = DeltaOperation>,
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = DeltaOperation>,
Creates a value from an iterator. Read more
impl Clone for DeltaOperation
[src]
impl Clone for DeltaOperation
fn clone(&self) -> DeltaOperation
[src]
fn clone(&self) -> DeltaOperation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for DeltaOperation
[src]
impl Debug for DeltaOperation
Auto Trait Implementations
impl Send for DeltaOperation
impl Send for DeltaOperation
impl Sync for DeltaOperation
impl Sync for DeltaOperation