pub struct ReferenceRequest<'a> { /* private fields */ }Expand description
One actual manifest declaration and its exact owning lock row.
Implementations§
Source§impl<'a> ReferenceRequest<'a>
impl<'a> ReferenceRequest<'a>
Sourcepub const fn new(
catalog: &'a LockedCatalog,
owner: LockedPackageId,
declaration: &'a DependencyDeclaration,
) -> Self
pub const fn new( catalog: &'a LockedCatalog, owner: LockedPackageId, declaration: &'a DependencyDeclaration, ) -> Self
Resolve the written alias, inherited constraints and source against this catalog.
Sourcepub const fn registry(self, registry: RegistryIndex<'a>) -> Self
pub const fn registry(self, registry: RegistryIndex<'a>) -> Self
Supply the explicitly observed index for a named or default registry.
Sourcepub fn select(
&self,
options: &LoadOptions,
) -> Result<LockedPackageId, LoadError>
pub fn select( &self, options: &LoadOptions, ) -> Result<LockedPackageId, LoadError>
Select exactly one complete outgoing row, without acquiring its contents.
§Errors
Preserves missing, ambiguous, incompatible and resource refusals from the catalog.
Sourcepub fn select_with_usage(
&self,
options: &LoadOptions,
) -> Result<(LockedPackageId, Usage), LoadError>
pub fn select_with_usage( &self, options: &LoadOptions, ) -> Result<(LockedPackageId, Usage), LoadError>
Select one outgoing row and report its actual bounded selection usage.
Work covers declaration/source/version comparisons. Item usage includes the retained catalog allowance; it is not newly acquired source storage. No source file is loaded and no provider authority is admitted.
§Errors
Preserves the same catalog and resource refusals as Self::select.
Auto Trait Implementations§
impl<'a> Forget for ReferenceRequest<'a>
impl<'a> Freeze for ReferenceRequest<'a>
impl<'a> Move for ReferenceRequest<'a>
impl<'a> RefUnwindSafe for ReferenceRequest<'a>
impl<'a> Send for ReferenceRequest<'a>
impl<'a> Sync for ReferenceRequest<'a>
impl<'a> Unpin for ReferenceRequest<'a>
impl<'a> UnsafeUnpin for ReferenceRequest<'a>
impl<'a> UnwindSafe for ReferenceRequest<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more