pub struct NasrResolver { /* private fields */ }Implementations§
Source§impl NasrResolver
impl NasrResolver
pub fn new(zip_bytes: &[u8]) -> Result<NasrResolver, JsValue>
pub fn airports(&self) -> Result<JsValue, JsValue>
pub fn resolve_airport(&self, code: String) -> 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_fix(&self, code: String) -> Result<JsValue, JsValue>
pub fn resolve_airway(&self, name: String) -> Result<JsValue, JsValue>
pub fn resolve_airspace(&self, designator: String) -> Result<JsValue, JsValue>
Trait Implementations§
Source§impl From<NasrResolver> for JsValue
impl From<NasrResolver> for JsValue
Source§fn from(value: NasrResolver) -> Self
fn from(value: NasrResolver) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for NasrResolver
impl FromWasmAbi for NasrResolver
Source§impl IntoWasmAbi for NasrResolver
impl IntoWasmAbi for NasrResolver
Source§impl LongRefFromWasmAbi for NasrResolver
impl LongRefFromWasmAbi for NasrResolver
Source§impl OptionFromWasmAbi for NasrResolver
impl OptionFromWasmAbi for NasrResolver
Source§impl OptionIntoWasmAbi for NasrResolver
impl OptionIntoWasmAbi for NasrResolver
Source§impl RefFromWasmAbi for NasrResolver
impl RefFromWasmAbi for NasrResolver
Source§type Anchor = RcRef<NasrResolver>
type Anchor = RcRef<NasrResolver>
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 RefMutFromWasmAbi for NasrResolver
impl RefMutFromWasmAbi for NasrResolver
Source§impl TryFromJsValue for NasrResolver
impl TryFromJsValue for NasrResolver
Source§impl VectorFromWasmAbi for NasrResolver
impl VectorFromWasmAbi for NasrResolver
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[NasrResolver]>
Source§impl VectorIntoWasmAbi for NasrResolver
impl VectorIntoWasmAbi for NasrResolver
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[NasrResolver]>) -> Self::Abi
Source§impl WasmDescribeVector for NasrResolver
impl WasmDescribeVector for NasrResolver
impl SupportsConstructor for NasrResolver
impl SupportsInstanceProperty for NasrResolver
impl SupportsStaticProperty for NasrResolver
Auto Trait Implementations§
impl Freeze for NasrResolver
impl RefUnwindSafe for NasrResolver
impl Send for NasrResolver
impl Sync for NasrResolver
impl Unpin for NasrResolver
impl UnsafeUnpin for NasrResolver
impl UnwindSafe for NasrResolver
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.