pub struct LineLocation;Expand description
A value schema for representing a span using explicit line and column coordinates.
Trait Implementations§
Source§impl Clone for LineLocation
impl Clone for LineLocation
Source§fn clone(&self) -> LineLocation
fn clone(&self) -> LineLocation
Returns a duplicate 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 ConstDescribe for LineLocation
impl ConstDescribe for LineLocation
Source§impl Debug for LineLocation
impl Debug for LineLocation
Source§impl ToValue<LineLocation> for Span
impl ToValue<LineLocation> for Span
Source§impl TryFromValue<'_, LineLocation> for (u64, u64, u64, u64)
impl TryFromValue<'_, LineLocation> for (u64, u64, u64, u64)
Source§type Error = Infallible
type Error = Infallible
The error type returned when the conversion fails.
Source§fn try_from_value(v: &Value<LineLocation>) -> Result<Self, Infallible>
fn try_from_value(v: &Value<LineLocation>) -> Result<Self, Infallible>
Convert the Value with a specific schema type to the Rust type.
Source§impl ValueSchema for LineLocation
impl ValueSchema for LineLocation
Source§type ValidationError = Infallible
type ValidationError = Infallible
Source§fn validate(value: Value<Self>) -> Result<Value<Self>, Self::ValidationError>
fn validate(value: Value<Self>) -> Result<Value<Self>, Self::ValidationError>
Check if the given value conforms to this schema.
Source§fn value_from<T: ToValue<Self>>(t: T) -> Value<Self>
fn value_from<T: ToValue<Self>>(t: T) -> Value<Self>
Source§fn value_try_from<T: TryToValue<Self>>(
t: T,
) -> Result<Value<Self>, <T as TryToValue<Self>>::Error>
fn value_try_from<T: TryToValue<Self>>( t: T, ) -> Result<Value<Self>, <T as TryToValue<Self>>::Error>
Create a new value from a concrete Rust type.
This is a convenience method that calls the TryToValue trait.
This method might return an error if the conversion is not possible. Read more
impl Copy for LineLocation
Auto Trait Implementations§
impl Freeze for LineLocation
impl RefUnwindSafe for LineLocation
impl Send for LineLocation
impl Sync for LineLocation
impl Unpin for LineLocation
impl UnsafeUnpin for LineLocation
impl UnwindSafe for LineLocation
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> Describe for Twhere
T: ConstDescribe,
impl<T> Describe for Twhere
T: ConstDescribe,
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