Trait NSValueMapKitGeometryExtensions

Source
pub unsafe trait NSValueMapKitGeometryExtensions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn valueWithMKCoordinate(
        coordinate: CLLocationCoordinate2D,
    ) -> Retained<NSValue> { ... }
    unsafe fn valueWithMKCoordinateSpan(
        span: MKCoordinateSpan,
    ) -> Retained<NSValue> { ... }
    unsafe fn MKCoordinateValue(&self) -> CLLocationCoordinate2D { ... }
    unsafe fn MKCoordinateSpanValue(&self) -> MKCoordinateSpan { ... }
}
Available on crate feature MKGeometry only.
Expand description

Category on NSValue.

Provided Methods§

Source

unsafe fn valueWithMKCoordinate( coordinate: CLLocationCoordinate2D, ) -> Retained<NSValue>

Available on crate feature objc2-core-location only.
Source

unsafe fn valueWithMKCoordinateSpan(span: MKCoordinateSpan) -> Retained<NSValue>

Available on crate feature objc2-core-location only.
Source

unsafe fn MKCoordinateValue(&self) -> CLLocationCoordinate2D

Available on crate feature objc2-core-location only.
Source

unsafe fn MKCoordinateSpanValue(&self) -> MKCoordinateSpan

Available on crate feature objc2-core-location only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSValueMapKitGeometryExtensions for NSValue

Implementors§