pub struct OmenaResolverStyleModuleSnapshotV0 {
pub available_style_paths: BTreeSet<String>,
pub file_sources: BTreeMap<String, String>,
pub package_manifests: Vec<OmenaResolverStylePackageManifestV0>,
pub bundler_path_mappings: Vec<OmenaResolverBundlerPathAliasMappingV0>,
pub tsconfig_path_mappings: Vec<OmenaResolverTsconfigPathMappingV0>,
}Expand description
Snapshot-backed resolver that adapts today’s style module resolver to the RFC 0004 protocol without adding I/O to canonicalization.
Fields§
§available_style_paths: BTreeSet<String>§file_sources: BTreeMap<String, String>§package_manifests: Vec<OmenaResolverStylePackageManifestV0>§bundler_path_mappings: Vec<OmenaResolverBundlerPathAliasMappingV0>§tsconfig_path_mappings: Vec<OmenaResolverTsconfigPathMappingV0>Implementations§
Source§impl OmenaResolverStyleModuleSnapshotV0
impl OmenaResolverStyleModuleSnapshotV0
pub fn new<I, S>(paths: I) -> Self
pub fn with_file_source( self, path: impl Into<String>, source: impl Into<String>, ) -> Self
pub fn with_package_manifests( self, manifests: Vec<OmenaResolverStylePackageManifestV0>, ) -> Self
pub fn with_bundler_path_mappings( self, mappings: Vec<OmenaResolverBundlerPathAliasMappingV0>, ) -> Self
pub fn with_tsconfig_path_mappings( self, mappings: Vec<OmenaResolverTsconfigPathMappingV0>, ) -> Self
Trait Implementations§
Source§impl Clone for OmenaResolverStyleModuleSnapshotV0
impl Clone for OmenaResolverStyleModuleSnapshotV0
Source§fn clone(&self) -> OmenaResolverStyleModuleSnapshotV0
fn clone(&self) -> OmenaResolverStyleModuleSnapshotV0
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for OmenaResolverStyleModuleSnapshotV0
impl Default for OmenaResolverStyleModuleSnapshotV0
Source§fn default() -> OmenaResolverStyleModuleSnapshotV0
fn default() -> OmenaResolverStyleModuleSnapshotV0
Returns the “default value” for a type. Read more
Source§impl OmenaResolverV0 for OmenaResolverStyleModuleSnapshotV0
impl OmenaResolverV0 for OmenaResolverStyleModuleSnapshotV0
fn canonicalize( &self, context: &OmenaResolverReferenceContextV0, raw_reference: &str, ) -> Result<OmenaResolverCanonicalUrlV0, OmenaResolverErrorV0>
fn load( &self, canonical_url: &OmenaResolverCanonicalUrlV0, ) -> Result<OmenaResolverLoadedSourceV0, OmenaResolverErrorV0>
Source§impl PartialEq for OmenaResolverStyleModuleSnapshotV0
impl PartialEq for OmenaResolverStyleModuleSnapshotV0
Source§fn eq(&self, other: &OmenaResolverStyleModuleSnapshotV0) -> bool
fn eq(&self, other: &OmenaResolverStyleModuleSnapshotV0) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OmenaResolverStyleModuleSnapshotV0
impl StructuralPartialEq for OmenaResolverStyleModuleSnapshotV0
Auto Trait Implementations§
impl Freeze for OmenaResolverStyleModuleSnapshotV0
impl RefUnwindSafe for OmenaResolverStyleModuleSnapshotV0
impl Send for OmenaResolverStyleModuleSnapshotV0
impl Sync for OmenaResolverStyleModuleSnapshotV0
impl Unpin for OmenaResolverStyleModuleSnapshotV0
impl UnsafeUnpin for OmenaResolverStyleModuleSnapshotV0
impl UnwindSafe for OmenaResolverStyleModuleSnapshotV0
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.