pub struct LineCol<Off: OffsetPosition = ByteOffset>where
Self: StringPosition,{
pub line: u32,
pub col: u32,
pub(crate) __phantom: PhantomData<Off>,
}Expand description
(line,column)-pair; where column is an offset
Fieldsยง
ยงline: u32ยงcol: u32ยง__phantom: PhantomData<Off>Implementationsยง
Sourceยงimpl<Off: OffsetPosition> LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> LineCol<Off>where
Self: StringPosition,
Trait Implementationsยง
Sourceยงimpl<Off: OffsetPosition> Add for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> Add for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: OffsetPosition> AddAssign for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> AddAssign for LineCol<Off>where
Self: StringPosition,
Sourceยงfn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSourceยงimpl<Off: Clone + OffsetPosition> Clone for LineCol<Off>where
Self: StringPosition,
impl<Off: Clone + OffsetPosition> Clone for LineCol<Off>where
Self: StringPosition,
impl<Off: Copy + OffsetPosition> Copy for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: OffsetPosition> Debug for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> Debug for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: Default + OffsetPosition> Default for LineCol<Off>where
Self: StringPosition,
impl<Off: Default + OffsetPosition> Default for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<'de, Off: OffsetPosition> Deserialize<'de> for LineCol<Off>where
LineCol<Off>: StringPosition,
Available on crate feature serde only.
impl<'de, Off: OffsetPosition> Deserialize<'de> for LineCol<Off>where
LineCol<Off>: StringPosition,
Available on crate feature
serde only.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<Off: OffsetPosition> Display for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> Display for LineCol<Off>where
Self: StringPosition,
impl<Off: Eq + OffsetPosition> Eq for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: Hash + OffsetPosition> Hash for LineCol<Off>where
Self: StringPosition,
impl<Off: Hash + OffsetPosition> Hash for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: OffsetPosition> Ord for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> Ord for LineCol<Off>where
Self: StringPosition,
1.21.0 (const: unstable) ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) ยท Sourceยงfn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Sourceยงimpl<Off: PartialEq + OffsetPosition> PartialEq for LineCol<Off>where
Self: StringPosition,
impl<Off: PartialEq + OffsetPosition> PartialEq for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: OffsetPosition> PartialOrd for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> PartialOrd for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> Sealed for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: OffsetPosition> Serialize for LineCol<Off>where
LineCol<Off>: StringPosition,
Available on crate feature serde only.
impl<Off: OffsetPosition> Serialize for LineCol<Off>where
LineCol<Off>: StringPosition,
Available on crate feature
serde only.Sourceยงimpl StringPosition for LineCol<ByteOffset>
impl StringPosition for LineCol<ByteOffset>
const KIND: PositionKind = PositionKind::LineColByte
fn inc_by(&mut self, c: char)
fn inc_newline(&mut self, _: bool)
fn inc_offset_by(&mut self, text: &str)
fn len(s: &str) -> Self
fn from_other<P: StringPosition>(p: P, source: &str) -> Self
fn from_many<P: StringPosition>(source: &str) -> PositionConverter<'_, P, Self>
fn into_other<P: StringPosition>(self, source: &str) -> P
fn into_many<P: StringPosition>(source: &str) -> PositionConverter<'_, Self, P>
fn get_range(start: Self, end: Self, text: &str) -> Option<&str>
Sourceยงimpl StringPosition for LineCol<CharOffset>
impl StringPosition for LineCol<CharOffset>
const KIND: PositionKind = PositionKind::LineColChar
fn inc_by(&mut self, _: char)
fn inc_newline(&mut self, _: bool)
fn inc_offset_by(&mut self, text: &str)
fn len(s: &str) -> Self
fn from_other<P: StringPosition>(p: P, source: &str) -> Self
fn from_many<P: StringPosition>(source: &str) -> PositionConverter<'_, P, Self>
fn into_other<P: StringPosition>(self, source: &str) -> P
fn into_many<P: StringPosition>(source: &str) -> PositionConverter<'_, Self, P>
fn get_range(start: Self, end: Self, text: &str) -> Option<&str>
Sourceยงimpl StringPosition for LineCol<Utf16Offset>
impl StringPosition for LineCol<Utf16Offset>
const KIND: PositionKind = PositionKind::LineColUtf16
fn inc_by(&mut self, c: char)
fn inc_newline(&mut self, _: bool)
fn inc_offset_by(&mut self, text: &str)
fn len(s: &str) -> Self
fn from_other<P: StringPosition>(p: P, source: &str) -> Self
fn from_many<P: StringPosition>(source: &str) -> PositionConverter<'_, P, Self>
fn into_other<P: StringPosition>(self, source: &str) -> P
fn into_many<P: StringPosition>(source: &str) -> PositionConverter<'_, Self, P>
fn get_range(start: Self, end: Self, text: &str) -> Option<&str>
impl<Off: PartialEq + OffsetPosition> StructuralPartialEq for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: OffsetPosition> Sub for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> Sub for LineCol<Off>where
Self: StringPosition,
Sourceยงimpl<Off: OffsetPosition> SubAssign for LineCol<Off>where
Self: StringPosition,
impl<Off: OffsetPosition> SubAssign for LineCol<Off>where
Self: StringPosition,
Sourceยงfn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementationsยง
impl<Off> Freeze for LineCol<Off>
impl<Off> RefUnwindSafe for LineCol<Off>
impl<Off> Send for LineCol<Off>
impl<Off> Sync for LineCol<Off>
impl<Off> Unpin for LineCol<Off>
impl<Off> UnsafeUnpin for LineCol<Off>
impl<Off> UnwindSafe for LineCol<Off>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงimpl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> CondSerialize for Twhere
T: Serialize,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
ยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.ยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
ยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
ยงimpl<T> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
ยงfn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
Tries to deserialize the data, given only the
submit event.ยงfn from_form_data(form_data: &FormData) -> Result<T, Error>
fn from_form_data(form_data: &FormData) -> Result<T, Error>
Tries to deserialize the data, given the actual form data.
ยงimpl<E, T, Request> FromReq<DeleteUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
impl<E, T, Request> FromReq<DeleteUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
ยงimpl<E, T, Request> FromReq<GetUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
impl<E, T, Request> FromReq<GetUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> FromReq<PatchUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
impl<E, T, Request> FromReq<PatchUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> FromReq<PostUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
impl<E, T, Request> FromReq<PostUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> FromReq<PutUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
impl<E, T, Request> FromReq<PutUrl, Request, E> for Twhere
Request: Req<E> + Send + 'static,
T: DeserializeOwned,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<T> Fruit for Twhere
T: Send + Downcast,
ยงimpl<T> Hexable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
impl<T> Hexable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self> โ
fn instrument(self, span: Span) -> Instrumented<Self> โ
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ยงimpl<E, T, Request> IntoReq<DeleteUrl, Request, E> for T
impl<E, T, Request> IntoReq<DeleteUrl, Request, E> for T
ยงimpl<E, T, Request> IntoReq<GetUrl, Request, E> for T
impl<E, T, Request> IntoReq<GetUrl, Request, E> for T
ยงimpl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> IntoReq<PatchUrl, Request, E> for T
impl<E, T, Request> IntoReq<PatchUrl, Request, E> for T
ยงimpl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> IntoReq<PostUrl, Request, E> for T
impl<E, T, Request> IntoReq<PostUrl, Request, E> for T
ยงimpl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> IntoReq<PutUrl, Request, E> for T
impl<E, T, Request> IntoReq<PutUrl, Request, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
ยงimpl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
ยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
Sourceยงimpl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
ยงimpl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
ยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
ยงfn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.