Struct loro_preload::TextRanges
source · pub struct TextRanges {
pub ranges: Vec<TextRange>,
}Fields§
§ranges: Vec<TextRange>Implementations§
source§impl TextRanges
impl TextRanges
pub fn decode_iter( bytes: &[u8] ) -> LoroResult<impl Iterator<Item = TextRange> + '_>
pub fn encode(&self) -> Vec<u8>
Trait Implementations§
source§impl Debug for TextRanges
impl Debug for TextRanges
source§impl Default for TextRanges
impl Default for TextRanges
source§fn default() -> TextRanges
fn default() -> TextRanges
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TextRanges
impl<'de> Deserialize<'de> for TextRanges
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 Serialize for TextRanges
impl Serialize for TextRanges
source§impl<'__iter> TableIter<'__iter> for TextRanges
impl<'__iter> TableIter<'__iter> for TextRanges
type Iter = TextRangesIter<'__iter>
Auto Trait Implementations§
impl RefUnwindSafe for TextRanges
impl Send for TextRanges
impl Sync for TextRanges
impl Unpin for TextRanges
impl UnwindSafe for TextRanges
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