pub struct OracleUi<'a> { /* private fields */ }Expand description
Main Oracle UI widget — data and builder; rendering is delegated to block modules.
Implementations§
Source§impl<'a> OracleUi<'a>
impl<'a> OracleUi<'a>
pub fn new(theme: &'a Theme) -> Self
pub fn items(self, items: &'a [AnalyzedItem]) -> Self
pub fn all_items_impl_lookup(self, items: Option<&'a [AnalyzedItem]>) -> Self
pub fn filtered_items(self, items: &'a [&'a AnalyzedItem]) -> Self
pub fn selected_installed_crate( self, crate_info: Option<&'a InstalledCrate>, ) -> Self
pub fn installed_crate_items(self, items: &'a [&'a AnalyzedItem]) -> Self
pub fn target_size_bytes(self, bytes: Option<u64>) -> Self
pub fn list_selected(self, selected: Option<usize>) -> Self
pub fn candidates(self, candidates: &'a [CompletionCandidate]) -> Self
pub fn crate_info(self, info: Option<&'a CrateInfo>) -> Self
pub fn dependency_tree(self, tree: &'a [(String, usize)]) -> Self
pub fn filtered_dependency_indices(self, indices: &'a [usize]) -> Self
pub fn crate_doc(self, doc: Option<&'a CrateDocInfo>) -> Self
pub fn crate_doc_loading(self, loading: bool) -> Self
pub fn crate_doc_failed(self, failed: bool) -> Self
pub fn search_input(self, input: &'a str) -> Self
pub fn current_tab(self, tab: Tab) -> Self
pub fn focus(self, focus: Focus) -> Self
pub fn selected_item(self, item: Option<&'a AnalyzedItem>) -> Self
pub fn completion_selected(self, index: usize) -> Self
pub fn show_completion(self, show: bool) -> Self
pub fn show_help(self, show: bool) -> Self
pub fn show_settings(self, show: bool) -> Self
pub fn status_message(self, msg: &'a str) -> Self
pub fn inspector_scroll(self, scroll: usize) -> Self
pub fn animation_state(self, animation: &'a AnimationState) -> Self
pub fn show_copilot_chat(self, show: bool) -> Self
pub fn copilot_chat_messages(self, messages: &'a [(String, String)]) -> Self
pub fn copilot_chat_input(self, input: &'a str) -> Self
pub fn copilot_chat_loading(self, loading: bool) -> Self
pub fn copilot_chat_scroll(self, scroll: usize) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for OracleUi<'a>
impl<'a> RefUnwindSafe for OracleUi<'a>
impl<'a> Send for OracleUi<'a>
impl<'a> Sync for OracleUi<'a>
impl<'a> Unpin for OracleUi<'a>
impl<'a> UnwindSafe for OracleUi<'a>
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