pub struct IdPrefixContext { /* private fields */ }Expand description
Manages configuration and cache of commit/change ID disambiguation index.
Implementations§
Source§impl IdPrefixContext
impl IdPrefixContext
pub fn new(extensions: Arc<RevsetExtensions>) -> Self
pub fn disambiguate_within(self, expression: Rc<UserRevsetExpression>) -> Self
Sourcepub fn populate(
&self,
repo: &dyn Repo,
) -> Result<IdPrefixIndex<'_>, IdPrefixIndexLoadError>
pub fn populate( &self, repo: &dyn Repo, ) -> Result<IdPrefixIndex<'_>, IdPrefixIndexLoadError>
Loads disambiguation index once, returns a borrowed index to disambiguate commit/change IDs.
Trait Implementations§
Source§impl Default for IdPrefixContext
impl Default for IdPrefixContext
Source§fn default() -> IdPrefixContext
fn default() -> IdPrefixContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for IdPrefixContext
impl !RefUnwindSafe for IdPrefixContext
impl !Send for IdPrefixContext
impl !Sync for IdPrefixContext
impl Unpin for IdPrefixContext
impl !UnwindSafe for IdPrefixContext
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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