pub enum TextUnit {
Utf8,
Line,
}
Expand description
The unit of measure when requesting data.
Variants§
Utf8
The requested offset is in bytes. The returned chunk will be valid UTF8, and is guaranteed to include the byte specified the offset.
Line
The requested offset is a line number. The returned chunk will begin at the offset of the requested line.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextUnit
impl<'de> Deserialize<'de> for TextUnit
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
impl Copy for TextUnit
Auto Trait Implementations§
impl Freeze for TextUnit
impl RefUnwindSafe for TextUnit
impl Send for TextUnit
impl Sync for TextUnit
impl Unpin for TextUnit
impl UnwindSafe for TextUnit
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