pub struct ModelView {
pub model: Option<ModelInfo>,
pub selected_layer: usize,
pub list_state: ListState,
pub scroll_state: ScrollbarState,
pub show_details: bool,
}Expand description
Model architecture view state
Fields§
§model: Option<ModelInfo>Loaded model info
selected_layer: usizeSelected layer index
list_state: ListStateList state for layer navigation
scroll_state: ScrollbarStateScroll state
show_details: boolShow detailed view
Implementations§
Source§impl ModelView
impl ModelView
Sourcepub fn select_prev(&mut self)
pub fn select_prev(&mut self)
Move selection up
Sourcepub fn select_next(&mut self)
pub fn select_next(&mut self)
Move selection down
Sourcepub fn toggle_details(&mut self)
pub fn toggle_details(&mut self)
Toggle detailed view
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelView
impl RefUnwindSafe for ModelView
impl Send for ModelView
impl Sync for ModelView
impl Unpin 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> 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