enum SourceProjection<'g> {
Staged(&'g ResolutionKeyProjection),
Captured(ResolutionKeyProjection),
}Expand description
Existing staged projection or an extra context source’s admitted key projection.
Variants§
Staged(&'g ResolutionKeyProjection)
Reuse already validated keys without cloning them.
Captured(ResolutionKeyProjection)
Project an explicitly required unchanged context once.
Implementations§
Source§impl SourceProjection<'_>
impl SourceProjection<'_>
Sourcefn get(&self) -> &ResolutionKeyProjection
fn get(&self) -> &ResolutionKeyProjection
Borrow the common key projection.
Auto Trait Implementations§
impl<'g> Freeze for SourceProjection<'g>
impl<'g> RefUnwindSafe for SourceProjection<'g>
impl<'g> Send for SourceProjection<'g>
impl<'g> Sync for SourceProjection<'g>
impl<'g> Unpin for SourceProjection<'g>
impl<'g> UnsafeUnpin for SourceProjection<'g>
impl<'g> UnwindSafe for SourceProjection<'g>
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
§impl<'a, T> FromIn<'a, T> for T
impl<'a, T> FromIn<'a, T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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