Struct loro_internal::op::SliceRange
source · #[repr(transparent)]pub struct SliceRange(pub Range<u32>);Tuple Fields§
§0: Range<u32>Implementations§
source§impl SliceRange
impl SliceRange
pub fn is_unknown(&self) -> bool
pub fn new_unknown(size: u32) -> Self
pub fn to_range(&self) -> Range<usize>
Trait Implementations§
source§impl Clone for SliceRange
impl Clone for SliceRange
source§fn clone(&self) -> SliceRange
fn clone(&self) -> SliceRange
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 SliceRange
impl Debug for SliceRange
source§impl From<SliceRange> for SliceRanges
impl From<SliceRange> for SliceRanges
source§fn from(value: SliceRange) -> Self
fn from(value: SliceRange) -> Self
Converts to this type from the input type.
source§impl HasLength for SliceRange
impl HasLength for SliceRange
source§fn content_len(&self) -> usize
fn content_len(&self) -> usize
It is the length of the content, i.e. the length when no Mergable::merge ever happen. Read more
source§impl Mergable for SliceRange
impl Mergable for SliceRange
source§impl PartialEq for SliceRange
impl PartialEq for SliceRange
source§fn eq(&self, other: &SliceRange) -> bool
fn eq(&self, other: &SliceRange) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SliceRange
impl Serialize for SliceRange
impl Eq for SliceRange
impl StructuralEq for SliceRange
impl StructuralPartialEq for SliceRange
Auto Trait Implementations§
impl RefUnwindSafe for SliceRange
impl Send for SliceRange
impl Sync for SliceRange
impl Unpin for SliceRange
impl UnwindSafe for SliceRange
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