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) -> TextDelta
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§
impl !RefUnwindSafe for Text
impl !UnwindSafe for Text
impl Freeze for Text
impl Unpin for Text
impl UnsafeUnpin for Text
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