pub struct Import {
pub module: String,
pub export: String,
}Expand description
A named import contributed by a CodecExpr::Import node.
§Example
use rkyv_js_codegen::Import;
let import = Import::new("rkyv-js/lib/uuid", "uuid");
assert_eq!(import.module, "rkyv-js/lib/uuid");
assert_eq!(import.export, "uuid");Fields§
§module: StringThe module specifier to import from (e.g. "rkyv-js/lib/uuid").
export: StringThe named export to import (e.g. "uuid").
Implementations§
Trait Implementations§
impl Eq for Import
Source§impl Ord for Import
impl Ord for Import
1.21.0 (const: unstable) · 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 PartialOrd for Import
impl PartialOrd for Import
impl StructuralPartialEq for Import
Auto Trait Implementations§
impl Freeze for Import
impl RefUnwindSafe for Import
impl Send for Import
impl Sync for Import
impl Unpin for Import
impl UnsafeUnpin for Import
impl UnwindSafe for Import
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