pub struct IndexBuilder { /* private fields */ }Implementations§
Source§impl IndexBuilder
impl IndexBuilder
pub fn new( model_manager: ModelManager, include_diffs: bool, ) -> Result<Self, IndexError>
pub fn from_existing( index: SemanticIndex, model_manager: ModelManager, ) -> Result<Self, IndexError>
Sourcepub fn set_last_commit(&mut self, hash: String)
pub fn set_last_commit(&mut self, hash: String)
Set the newest indexed commit hash (should be HEAD or newest new commit).
pub fn add_commit(&mut self, commit: CommitInfo) -> Result<(), IndexError>
pub fn build(self) -> SemanticIndex
Auto Trait Implementations§
impl !Freeze for IndexBuilder
impl !RefUnwindSafe for IndexBuilder
impl Send for IndexBuilder
impl Sync for IndexBuilder
impl Unpin for IndexBuilder
impl UnsafeUnpin for IndexBuilder
impl !UnwindSafe for IndexBuilder
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