pub enum ArrowEnd {
Coords([f64; 2]),
Named(String),
}Expand description
One end of an arrow.
Either form Point takes, minus the query: coordinates for a client that measured
the screen, or a named position for one that has not. The forms are different JSON
shapes, a pair against a string, so an end can never be two things at once.
Variants§
Coords([f64; 2])
Logical coordinates, as [x, y].
Named(String)
A position named relative to the display, such as top-left or 50%,30%.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArrowEnd
impl<'de> Deserialize<'de> for ArrowEnd
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 StructuralPartialEq for ArrowEnd
Auto Trait Implementations§
impl Freeze for ArrowEnd
impl RefUnwindSafe for ArrowEnd
impl Send for ArrowEnd
impl Sync for ArrowEnd
impl Unpin for ArrowEnd
impl UnsafeUnpin for ArrowEnd
impl UnwindSafe for ArrowEnd
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