Struct woot::WString
[−]
[src]
pub struct WString<S, P: Key> { /* fields omitted */ }
The actual String type
Methods
impl<S, P> WString<S, P> where
S: Clone,
P: Key,
[src]
S: Clone,
P: Key,
fn new() -> WString<S, P>
fn len(&self) -> usize
Length of visible data.
fn contents(&self) -> Vec<S>
Visible data
fn iter(&self) -> WStringIter<S, P>
Visible data as an iterator
fn apply(&mut self, op: Operation<S, P>)
Applies Operation op.
fn ins(&mut self, n: usize, v: S, stamp: P) -> Operation<S, P>
Insert v at position n. This will panic if n > len()
fn del(&mut self, n: usize) -> Operation<S, P>
delete charater at position n panics if n >= len()
Trait Implementations
impl<S, P> Debug for WString<S, P> where
S: Debug,
P: Key + Debug,
[src]
S: Debug,
P: Key + Debug,