pub struct Customxy {
pub x: i32,
pub y: i32,
}
Expand description
Custom xy-chromaticity coordinate.
Coordinate values are scaled by 1e6
(1_000_000
).
Fields§
§x: i32
§y: i32
Implementations§
Trait Implementations§
source§impl<Ctx: Copy> BundleDefault<Ctx> for Customxy
impl<Ctx: Copy> BundleDefault<Ctx> for Customxy
source§fn default_with_context(_ctx: Ctx) -> Selfwhere
Self: Sized,
fn default_with_context(_ctx: Ctx) -> Selfwhere
Self: Sized,
Creates a default value with the given context.
impl Copy for Customxy
impl Eq for Customxy
impl StructuralPartialEq for Customxy
Auto Trait Implementations§
impl Freeze for Customxy
impl RefUnwindSafe for Customxy
impl Send for Customxy
impl Sync for Customxy
impl Unpin for Customxy
impl UnwindSafe for Customxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)