pub struct ResolutionProjectionContext<'a> { /* private fields */ }Expand description
Repository configuration supplied to provider-owned semantic projection.
Implementations§
Source§impl<'a> ResolutionProjectionContext<'a>
impl<'a> ResolutionProjectionContext<'a>
Sourcepub const fn with_configured_modules(
configured_modules: &'a ConfiguredModuleResolution,
) -> Self
pub const fn with_configured_modules( configured_modules: &'a ConfiguredModuleResolution, ) -> Self
Construct a projection context with one validated configured-module snapshot.
Sourcepub const fn with_source_semantics(
self,
semantics: &'a SourceSemanticFacts,
) -> Self
pub const fn with_source_semantics( self, semantics: &'a SourceSemanticFacts, ) -> Self
Attach source-owned ordinals for exact lexical/import projection.
Sourcepub const fn with_rust_package(self, manifest: &'a str, root: &'a str) -> Self
pub const fn with_rust_package(self, manifest: &'a str, root: &'a str) -> Self
Attach actual Cargo ownership for automatic-target invalidation keys.
Sourcepub const fn with_rust_root_cohort(self, directory: &'a str) -> Self
pub const fn with_rust_root_cohort(self, directory: &'a str) -> Self
Attach an admitted cohort only for this exact Cargo root source.
Sourcepub const fn with_retained_bytes_limit(self, limit: u64) -> Self
pub const fn with_retained_bytes_limit(self, limit: u64) -> Self
Bound derivation by the bytes still available in the owning operation.
Exhaustion returns ResolutionProjectionError::MemoryLimit without a
partially admitted projection. The owner supplies its existing ceiling.
Trait Implementations§
Source§impl<'a> Clone for ResolutionProjectionContext<'a>
impl<'a> Clone for ResolutionProjectionContext<'a>
Source§fn clone(&self) -> ResolutionProjectionContext<'a>
fn clone(&self) -> ResolutionProjectionContext<'a>
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 moreimpl<'a> Copy for ResolutionProjectionContext<'a>
Source§impl<'a> Debug for ResolutionProjectionContext<'a>
impl<'a> Debug for ResolutionProjectionContext<'a>
Source§impl<'a> Default for ResolutionProjectionContext<'a>
impl<'a> Default for ResolutionProjectionContext<'a>
Source§fn default() -> ResolutionProjectionContext<'a>
fn default() -> ResolutionProjectionContext<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ResolutionProjectionContext<'a>
impl<'a> RefUnwindSafe for ResolutionProjectionContext<'a>
impl<'a> Send for ResolutionProjectionContext<'a>
impl<'a> Sync for ResolutionProjectionContext<'a>
impl<'a> Unpin for ResolutionProjectionContext<'a>
impl<'a> UnsafeUnpin for ResolutionProjectionContext<'a>
impl<'a> UnwindSafe for ResolutionProjectionContext<'a>
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