#[non_exhaustive]pub struct NormalizedVertex {
pub x: f32,
pub y: f32,
/* private fields */
}Expand description
A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
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: f32X coordinate.
y: f32Y coordinate.
Implementations§
Trait Implementations§
Source§impl Clone for NormalizedVertex
impl Clone for NormalizedVertex
Source§fn clone(&self) -> NormalizedVertex
fn clone(&self) -> NormalizedVertex
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 NormalizedVertex
impl Debug for NormalizedVertex
Source§impl Default for NormalizedVertex
impl Default for NormalizedVertex
Source§fn default() -> NormalizedVertex
fn default() -> NormalizedVertex
Returns the “default value” for a type. Read more
Source§impl Message for NormalizedVertex
impl Message for NormalizedVertex
Source§impl PartialEq for NormalizedVertex
impl PartialEq for NormalizedVertex
impl StructuralPartialEq for NormalizedVertex
Auto Trait Implementations§
impl Freeze for NormalizedVertex
impl RefUnwindSafe for NormalizedVertex
impl Send for NormalizedVertex
impl Sync for NormalizedVertex
impl Unpin for NormalizedVertex
impl UnwindSafe for NormalizedVertex
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