#[non_exhaustive]pub struct NormalizedCoordinate {
pub x: f64,
pub y: f64,
/* private fields */
}
Expand description
2D normalized coordinates. Default: {0.0, 0.0}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.x: f64
Normalized x coordinate.
y: f64
Normalized y coordinate.
Implementations§
Trait Implementations§
Source§impl Clone for NormalizedCoordinate
impl Clone for NormalizedCoordinate
Source§fn clone(&self) -> NormalizedCoordinate
fn clone(&self) -> NormalizedCoordinate
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 Debug for NormalizedCoordinate
impl Debug for NormalizedCoordinate
Source§impl Default for NormalizedCoordinate
impl Default for NormalizedCoordinate
Source§fn default() -> NormalizedCoordinate
fn default() -> NormalizedCoordinate
Returns the “default value” for a type. Read more
Source§impl Message for NormalizedCoordinate
impl Message for NormalizedCoordinate
Source§impl PartialEq for NormalizedCoordinate
impl PartialEq for NormalizedCoordinate
impl StructuralPartialEq for NormalizedCoordinate
Auto Trait Implementations§
impl Freeze for NormalizedCoordinate
impl RefUnwindSafe for NormalizedCoordinate
impl Send for NormalizedCoordinate
impl Sync for NormalizedCoordinate
impl Unpin for NormalizedCoordinate
impl UnwindSafe for NormalizedCoordinate
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