pub enum TextLocation {
Coordinates {
point: Point2<i32>,
},
Line {
line: i32,
},
}
Variants§
Trait Implementations§
Source§impl Clone for TextLocation
impl Clone for TextLocation
Source§fn clone(&self) -> TextLocation
fn clone(&self) -> TextLocation
Returns a copy 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 Debug for TextLocation
impl Debug for TextLocation
Source§impl Default for TextLocation
impl Default for TextLocation
Source§impl<'de> Deserialize<'de> for TextLocation
impl<'de> Deserialize<'de> for TextLocation
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 Hash for TextLocation
impl Hash for TextLocation
Source§impl Ord for TextLocation
impl Ord for TextLocation
Source§fn cmp(&self, other: &TextLocation) -> Ordering
fn cmp(&self, other: &TextLocation) -> Ordering
1.21.0 · 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
Source§impl PartialEq for TextLocation
impl PartialEq for TextLocation
Source§impl PartialOrd for TextLocation
impl PartialOrd for TextLocation
Source§impl Serialize for TextLocation
impl Serialize for TextLocation
impl Eq for TextLocation
impl StructuralPartialEq for TextLocation
Auto Trait Implementations§
impl Freeze for TextLocation
impl RefUnwindSafe for TextLocation
impl Send for TextLocation
impl Sync for TextLocation
impl Unpin for TextLocation
impl UnwindSafe for TextLocation
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