pub struct Text(/* private fields */);Implementations§
Source§impl Text
impl Text
pub fn len(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn insert<T: ToString>( &mut self, char_index: u64, str: T, ) -> JwstCodecResult
pub fn remove(&mut self, char_index: u64, len: u64) -> JwstCodecResult
pub fn to_delta(&self) -> Vec<TextDeltaOp>
pub fn apply_delta(&mut self, delta: &[TextDeltaOp]) -> JwstCodecResult
Trait Implementations§
impl Send for Text
impl StructuralPartialEq for Text
impl Sync for Text
Auto Trait Implementations§
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