Struct objc2_foundation::NSPoint
source · [−]Expand description
A point in a Cartesian coordinate system.
For ease of use, this is available on all platforms, though in practice it is only useful on macOS.
See Apple’s documentation.
and the related core_graphics_types::geometry::CGPoint
.
Fields
x: CGFloat
The x-coordinate of the point.
y: CGFloat
The y-coordinate of the point.
Implementations
Trait Implementations
sourceimpl RefEncode for NSPoint
impl RefEncode for NSPoint
sourceconst ENCODING_REF: Encoding<'static> = Encoding::Pointer(&Self::ENCODING)
const ENCODING_REF: Encoding<'static> = Encoding::Pointer(&Self::ENCODING)
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSPoint
impl StructuralPartialEq for NSPoint
Auto Trait Implementations
impl RefUnwindSafe for NSPoint
impl Send for NSPoint
impl Sync for NSPoint
impl Unpin for NSPoint
impl UnwindSafe for NSPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more