pub struct PlotterPoint(pub [JavaScriptSafeInteger; 2]);Expand description
Plotter point encoded as an exact coordinate pair.
JSON schema
{
"description": "Plotter point encoded as an exact coordinate pair.",
"type": "array",
"items": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"maxItems": 2,
"minItems": 2
}Tuple Fields§
§0: [JavaScriptSafeInteger; 2]Trait Implementations§
Source§impl Clone for PlotterPoint
impl Clone for PlotterPoint
Source§fn clone(&self) -> PlotterPoint
fn clone(&self) -> PlotterPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlotterPoint
impl Debug for PlotterPoint
Source§impl Deref for PlotterPoint
impl Deref for PlotterPoint
Source§type Target = [JavaScriptSafeInteger; 2]
type Target = [JavaScriptSafeInteger; 2]
The resulting type after dereferencing.
Source§fn deref(&self) -> &[JavaScriptSafeInteger; 2]
fn deref(&self) -> &[JavaScriptSafeInteger; 2]
Dereferences the value.
Source§impl<'de> Deserialize<'de> for PlotterPoint
impl<'de> Deserialize<'de> for PlotterPoint
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 From<PlotterPoint> for [JavaScriptSafeInteger; 2]
impl From<PlotterPoint> for [JavaScriptSafeInteger; 2]
Source§fn from(value: PlotterPoint) -> Self
fn from(value: PlotterPoint) -> Self
Converts to this type from the input type.
Source§impl From<[JavaScriptSafeInteger; 2]> for PlotterPoint
impl From<[JavaScriptSafeInteger; 2]> for PlotterPoint
Source§fn from(value: [JavaScriptSafeInteger; 2]) -> Self
fn from(value: [JavaScriptSafeInteger; 2]) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlotterPoint
impl RefUnwindSafe for PlotterPoint
impl Send for PlotterPoint
impl Sync for PlotterPoint
impl Unpin for PlotterPoint
impl UnsafeUnpin for PlotterPoint
impl UnwindSafe for PlotterPoint
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