pub struct InMemoryProjectSearchService { /* private fields */ }Expand description
Default in-memory ProjectSearchService.
Implementations§
Source§impl InMemoryProjectSearchService
impl InMemoryProjectSearchService
pub fn new() -> Self
pub fn handle() -> ProjectSearchServiceHandle
Trait Implementations§
Source§impl Debug for InMemoryProjectSearchService
impl Debug for InMemoryProjectSearchService
Source§impl Default for InMemoryProjectSearchService
impl Default for InMemoryProjectSearchService
Source§fn default() -> InMemoryProjectSearchService
fn default() -> InMemoryProjectSearchService
Returns the “default value” for a type. Read more
Source§impl ProjectSearchService for InMemoryProjectSearchService
impl ProjectSearchService for InMemoryProjectSearchService
fn state(&self, view: BufferId) -> Option<Arc<RwLock<ProjectSearchState>>>
fn set_state(&self, view: BufferId, state: ProjectSearchState)
fn clear(&self, view: BufferId)
fn attach_task(&self, view: BufferId, handle: JoinHandle<()>)
Source§fn add_hits(&self, view: BufferId, add: usize)
fn add_hits(&self, view: BufferId, add: usize)
Update the running tally of hits as a scan progresses.
fn set_status(&self, view: BufferId, status: SearchStatus)
fn len(&self) -> usize
Source§fn record_source_path(&self, view: BufferId, source: BufferId, path: PathBuf)
fn record_source_path(&self, view: BufferId, source: BufferId, path: PathBuf)
M.6.1: record the on-disk path for a source buffer the
forwarder just attached to the view. Jump-to-source reads
this map back to resolve excerpt → path.
Source§fn source_path(&self, view: BufferId, source: BufferId) -> Option<PathBuf>
fn source_path(&self, view: BufferId, source: BufferId) -> Option<PathBuf>
M.6.1: look up the path for a source buffer (used by
jump-to-source after finding the excerpt under cursor).
Source§fn find_source_for_path(&self, view: BufferId, path: &Path) -> Option<BufferId>
fn find_source_for_path(&self, view: BufferId, path: &Path) -> Option<BufferId>
M.6.2 (2026-06-01): reverse lookup — find an existing
source buffer for a path inside a view. Forwarder uses
this to dedup file loads across batches: a file with
hits split across two batches reuses the same source
buffer instead of spawning a second
RopeDocumentHandle.Auto Trait Implementations§
impl !Freeze for InMemoryProjectSearchService
impl RefUnwindSafe for InMemoryProjectSearchService
impl Send for InMemoryProjectSearchService
impl Sync for InMemoryProjectSearchService
impl Unpin for InMemoryProjectSearchService
impl UnsafeUnpin for InMemoryProjectSearchService
impl UnwindSafe for InMemoryProjectSearchService
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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