#[repr(transparent)]pub struct ARAltitudeSource(pub NSInteger);Available on crate features
ARGeoTrackingTypes and objc2 only.Expand description
Keeps track of where an altitude value came from and informs the user about the expected accuracy.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl ARAltitudeSource
impl ARAltitudeSource
Sourcepub const Coarse: Self
pub const Coarse: Self
ARKit determined altitude based on a coarse digital elevation model. The provided value is too imprecise to be used at close range, but is sufficient to anchor far away content.
Sourcepub const Precise: Self
pub const Precise: Self
ARKit determined altitude based on a high resolution digital elevation model.
Sourcepub const UserDefined: Self
pub const UserDefined: Self
Altitude was provided by the user.
Trait Implementations§
Source§impl Clone for ARAltitudeSource
impl Clone for ARAltitudeSource
Source§fn clone(&self) -> ARAltitudeSource
fn clone(&self) -> ARAltitudeSource
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 ARAltitudeSource
impl Debug for ARAltitudeSource
Source§impl Encode for ARAltitudeSource
impl Encode for ARAltitudeSource
Source§impl Hash for ARAltitudeSource
impl Hash for ARAltitudeSource
Source§impl Ord for ARAltitudeSource
impl Ord for ARAltitudeSource
Source§fn cmp(&self, other: &ARAltitudeSource) -> Ordering
fn cmp(&self, other: &ARAltitudeSource) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ARAltitudeSource
impl PartialEq for ARAltitudeSource
Source§impl PartialOrd for ARAltitudeSource
impl PartialOrd for ARAltitudeSource
Source§impl RefEncode for ARAltitudeSource
impl RefEncode for ARAltitudeSource
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for ARAltitudeSource
impl Eq for ARAltitudeSource
impl StructuralPartialEq for ARAltitudeSource
Auto Trait Implementations§
impl Freeze for ARAltitudeSource
impl RefUnwindSafe for ARAltitudeSource
impl Send for ARAltitudeSource
impl Sync for ARAltitudeSource
impl Unpin for ARAltitudeSource
impl UnwindSafe for ARAltitudeSource
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§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.