Struct re_dev_tools::build_search_index::ingest::Context
source · struct Context {
progress: MultiProgress,
metadata: Metadata,
id_gen: IdGen,
documents: RefCell<Vec<Document>>,
release_version: Option<Version>,
is_tty: bool,
}
Fields§
§progress: MultiProgress
§metadata: Metadata
§id_gen: IdGen
§documents: RefCell<Vec<Document>>
§release_version: Option<Version>
§is_tty: bool
Implementations§
source§impl Context
impl Context
fn new(release_version: Option<Version>) -> Result<Self>
fn is_tty(&self) -> bool
fn progress_bar(&self, prefix: impl Into<Cow<'static, str>>) -> ProgressBar
fn finish_progress_bar(&self, bar: ProgressBar)
fn workspace_root(&self) -> &Utf8Path
fn rerun_pkg(&self) -> &Package
fn release_version(&self) -> &Version
fn push(&self, data: DocumentData)
fn finish(self) -> Vec<Document>
Auto Trait Implementations§
impl !Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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>
§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