pub enum SpaceKind<R>where
R: RealField,{
Geo(GeoSpace<R>),
Ecef(EcefSpace<R>),
Euclidean(EuclideanSpace<R>),
Ned(NedSpace<R>),
}Expand description
An enumeration over supported spatial context types.
This abstraction allows unified handling of multiple space types:
- Geodetic (
GeoSpace) - Euclidean (
EuclideanSpace) - Cartesian Earth-fixed (
EcefSpace) - Local tangent frame (
NedSpace)
Variants§
Trait Implementations§
Source§impl<R: RealField> Coordinate for SpaceKind<R>
impl<R: RealField> Coordinate for SpaceKind<R>
Source§impl<R: RealField> Identifiable for SpaceKind<R>
impl<R: RealField> Identifiable for SpaceKind<R>
Source§fn id(&self) -> ContextoidId
fn id(&self) -> ContextoidId
Returns the unique id of this item.
Source§impl<R: RealField + Into<f64> + FromPrimitive> Recordable<SpaceRecord> for SpaceKind<R>
Total: four variants, four arms, each delegating to the type it wraps.
impl<R: RealField + Into<f64> + FromPrimitive> Recordable<SpaceRecord> for SpaceKind<R>
Total: four variants, four arms, each delegating to the type it wraps.
Source§fn to_record(&self) -> Result<SpaceRecord, ProjectionError>
fn to_record(&self) -> Result<SpaceRecord, ProjectionError>
The node as a record.
Source§fn from_record(
id: ContextoidId,
record: SpaceRecord,
) -> Result<Self, ProjectionError>
fn from_record( id: ContextoidId, record: SpaceRecord, ) -> Result<Self, ProjectionError>
The node a record describes, under the given identifier.
impl<R: RealField> Spatial for SpaceKind<R>
impl<R> StructuralPartialEq for SpaceKind<R>
Auto Trait Implementations§
impl<R> Freeze for SpaceKind<R>
impl<R> RefUnwindSafe for SpaceKind<R>where
GeoSpace<R>: RefUnwindSafe,
EcefSpace<R>: RefUnwindSafe,
EuclideanSpace<R>: RefUnwindSafe,
NedSpace<R>: RefUnwindSafe,
impl<R> Send for SpaceKind<R>
impl<R> Sync for SpaceKind<R>
impl<R> Unpin for SpaceKind<R>
impl<R> UnsafeUnpin for SpaceKind<R>where
GeoSpace<R>: UnsafeUnpin,
EcefSpace<R>: UnsafeUnpin,
EuclideanSpace<R>: UnsafeUnpin,
NedSpace<R>: UnsafeUnpin,
impl<R> UnwindSafe for SpaceKind<R>where
GeoSpace<R>: UnwindSafe,
EcefSpace<R>: UnwindSafe,
EuclideanSpace<R>: UnwindSafe,
NedSpace<R>: UnwindSafe,
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