pub struct ChartPoint {
pub x: f32,
pub y: f32,
}Expand description
One point in a chart’s logical data coordinate space.
§Examples
use ailloli_ui_core::ChartPoint;
let point = ChartPoint::new(2.0, 8.5);
assert_eq!((point.x, point.y), (2.0, 8.5));Fields§
§x: f32Horizontal data coordinate, without an implied unit.
y: f32Vertical data coordinate, without an implied unit.
Implementations§
Trait Implementations§
Source§impl Clone for ChartPoint
impl Clone for ChartPoint
Source§fn clone(&self) -> ChartPoint
fn clone(&self) -> ChartPoint
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 ChartPoint
impl Debug for ChartPoint
Source§impl Default for ChartPoint
impl Default for ChartPoint
Source§fn default() -> ChartPoint
fn default() -> ChartPoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChartPoint
impl PartialEq for ChartPoint
impl Copy for ChartPoint
impl StructuralPartialEq for ChartPoint
Auto Trait Implementations§
impl Freeze for ChartPoint
impl RefUnwindSafe for ChartPoint
impl Send for ChartPoint
impl Sync for ChartPoint
impl Unpin for ChartPoint
impl UnwindSafe for ChartPoint
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