pub struct EurocontrolResolver { /* private fields */ }Implementations§
Source§impl EurocontrolResolver
impl EurocontrolResolver
pub fn new(aixm_folder: JsValue) -> Result<EurocontrolResolver, JsValue>
pub fn from_ddr_folder( ddr_folder: JsValue, ) -> Result<EurocontrolResolver, JsValue>
pub fn from_ddr_archive( ddr_archive: Vec<u8>, ) -> Result<EurocontrolResolver, JsValue>
pub fn airports(&self) -> Result<JsValue, JsValue>
pub fn fixes(&self) -> Result<JsValue, JsValue>
pub fn airways(&self) -> Result<JsValue, JsValue>
pub fn airspaces(&self) -> Result<JsValue, JsValue>
pub fn resolve_airport(&self, code: String) -> Result<JsValue, JsValue>
pub fn resolve_fix(&self, code: String) -> Result<JsValue, JsValue>
pub fn resolve_airway(&self, name: String) -> Result<JsValue, JsValue>
pub fn resolve_sid(&self, name: String) -> Result<JsValue, JsValue>
pub fn resolve_star(&self, name: String) -> Result<JsValue, JsValue>
pub fn resolve_airspace(&self, designator: String) -> Result<JsValue, JsValue>
Sourcepub fn enrich_route(&self, route: String) -> Result<JsValue, JsValue>
pub fn enrich_route(&self, route: String) -> Result<JsValue, JsValue>
Parse and resolve a raw ICAO field 15 route string into a sequence of geographic segments.
Returns a JS array of { start, end, name? } objects where start and end are
{ latitude, longitude, name?, kind? } resolved geographic points.
Points are resolved against the resolver’s navaid/airport indices. Airways are expanded to their constituent waypoints. Direct (DCT) segments connect the previous resolved point to the next one. SID/STAR designators are not expanded (no procedure leg data available).
Trait Implementations§
Source§impl From<EurocontrolResolver> for JsValue
impl From<EurocontrolResolver> for JsValue
Source§fn from(value: EurocontrolResolver) -> Self
fn from(value: EurocontrolResolver) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for EurocontrolResolver
impl FromWasmAbi for EurocontrolResolver
Source§impl IntoWasmAbi for EurocontrolResolver
impl IntoWasmAbi for EurocontrolResolver
Source§impl RefFromWasmAbi for EurocontrolResolver
impl RefFromWasmAbi for EurocontrolResolver
Source§type Anchor = RcRef<EurocontrolResolver>
type Anchor = RcRef<EurocontrolResolver>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for EurocontrolResolver
impl TryFromJsValue for EurocontrolResolver
Source§impl VectorFromWasmAbi for EurocontrolResolver
impl VectorFromWasmAbi for EurocontrolResolver
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[EurocontrolResolver]>
Source§impl VectorIntoWasmAbi for EurocontrolResolver
impl VectorIntoWasmAbi for EurocontrolResolver
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[EurocontrolResolver]>) -> Self::Abi
Source§impl WasmDescribeVector for EurocontrolResolver
impl WasmDescribeVector for EurocontrolResolver
impl SupportsConstructor for EurocontrolResolver
impl SupportsInstanceProperty for EurocontrolResolver
impl SupportsStaticProperty for EurocontrolResolver
Auto Trait Implementations§
impl Freeze for EurocontrolResolver
impl RefUnwindSafe for EurocontrolResolver
impl Send for EurocontrolResolver
impl Sync for EurocontrolResolver
impl Unpin for EurocontrolResolver
impl UnsafeUnpin for EurocontrolResolver
impl UnwindSafe for EurocontrolResolver
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> CoordinateMetadata for Twhere
T: ?Sized,
impl<T> CoordinateMetadata for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.