pub struct ModelView { /* private fields */ }Implementations§
Source§impl ModelView
impl ModelView
pub fn new( title: &str, overview: Vec<String>, rows: Vec<ModelRow>, color: bool, ) -> Result<Self>
pub fn from_catalog( presentation: &CatalogPresentation, color: bool, ) -> Result<Self>
pub fn from_recommendation( presentation: &Recommendation, color: bool, ) -> Result<Self>
pub fn from_installed(presentation: &InstalledView, color: bool) -> Result<Self>
pub fn from_can_run(evidence: &Value, color: bool) -> Result<Self>
pub fn selected(&self) -> Option<&ModelRow>
pub fn visible_count(&self) -> usize
pub fn detail_focused(&self) -> bool
Auto Trait Implementations§
impl Freeze for ModelView
impl RefUnwindSafe for ModelView
impl Send for ModelView
impl Sync for ModelView
impl Unpin for ModelView
impl UnsafeUnpin for ModelView
impl UnwindSafe for ModelView
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