pub struct TextRange {
pub start: usize,
pub len: usize,
}
Fields§
§start: usize
§len: usize
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextRange
impl<'de> Deserialize<'de> for TextRange
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<'__de, __IT> RowDe<'__de, __IT> for TextRange
impl<'__de, __IT> RowDe<'__de, __IT> for TextRange
fn deserialize_columns<__D>(de: __D) -> Result<__IT, __D::Error>where
__D: Deserializer<'__de>,
Source§impl<__IT> RowSer<__IT> for TextRange
impl<__IT> RowSer<__IT> for TextRange
fn serialize_columns<S>(rows: &__IT, ser: S) -> Result<S::Ok, S::Error>where
S: Serializer,
impl Copy for TextRange
Auto Trait Implementations§
impl Freeze for TextRange
impl RefUnwindSafe for TextRange
impl Send for TextRange
impl Sync for TextRange
impl Unpin for TextRange
impl UnwindSafe for TextRange
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more