Struct loro_internal::StringSlice
source · pub struct StringSlice { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for StringSlice
impl Clone for StringSlice
source§fn clone(&self) -> StringSlice
fn clone(&self) -> StringSlice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StringSlice
impl Debug for StringSlice
source§impl Default for StringSlice
impl Default for StringSlice
source§impl DeltaValue for StringSlice
impl DeltaValue for StringSlice
source§impl<'de> Deserialize<'de> for StringSlice
impl<'de> Deserialize<'de> for StringSlice
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for StringSlice
impl Display for StringSlice
source§impl From<&str> for StringSlice
impl From<&str> for StringSlice
source§impl From<BytesSlice> for StringSlice
impl From<BytesSlice> for StringSlice
source§fn from(s: BytesSlice) -> Self
fn from(s: BytesSlice) -> Self
Converts to this type from the input type.
source§impl From<String> for StringSlice
impl From<String> for StringSlice
source§impl Mergeable for StringSlice
impl Mergeable for StringSlice
source§impl PartialEq for StringSlice
impl PartialEq for StringSlice
source§impl Serialize for StringSlice
impl Serialize for StringSlice
source§impl Sliceable for StringSlice
impl Sliceable for StringSlice
fn _slice(&self, range: Range<usize>) -> Self
fn split(&mut self, pos: usize) -> Self
fn slice(&self, range: impl RangeBounds<usize>) -> Self
source§fn slice_(&mut self, range: impl RangeBounds<usize>)
fn slice_(&mut self, range: impl RangeBounds<usize>)
slice in-place
source§fn update_with_split(
&mut self,
range: impl RangeBounds<usize>,
f: impl FnOnce(&mut Self),
) -> (Option<Self>, Option<Self>)
fn update_with_split( &mut self, range: impl RangeBounds<usize>, f: impl FnOnce(&mut Self), ) -> (Option<Self>, Option<Self>)
Update the slice in the given range.
This method may split
self
into two or three parts.
If so, it will make self
the leftmost part and return the next split parts. Read moresource§impl TryInsert for StringSlice
impl TryInsert for StringSlice
impl DeltaValue for StringSlice
impl Eq for StringSlice
Auto Trait Implementations§
impl Freeze for StringSlice
impl RefUnwindSafe for StringSlice
impl Send for StringSlice
impl Sync for StringSlice
impl Unpin for StringSlice
impl UnwindSafe for StringSlice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)