pub struct DataView {
pub dataset: Option<DatasetInfo>,
pub selected_class: usize,
pub list_state: ListState,
pub active_panel: usize,
}Expand description
Dataset view state
Fields§
§dataset: Option<DatasetInfo>Loaded dataset info
selected_class: usizeSelected class index
list_state: ListStateList state for class navigation
active_panel: usizeActive panel (0=classes, 1=features)
Implementations§
Source§impl DataView
impl DataView
Sourcepub fn load_demo_data(&mut self)
pub fn load_demo_data(&mut self)
Load demo dataset for visualization
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 load_dataset(&mut self, _path: &Path) -> Result<(), String>
pub fn load_dataset(&mut self, _path: &Path) -> Result<(), String>
Load a dataset from a file path
Sourcepub fn switch_panel(&mut self)
pub fn switch_panel(&mut self)
Switch active panel
Sourcepub fn prev_panel(&mut self)
pub fn prev_panel(&mut self)
Go to previous panel
Sourcepub fn next_panel(&mut self)
pub fn next_panel(&mut self)
Go to next panel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataView
impl RefUnwindSafe for DataView
impl Send for DataView
impl Sync for DataView
impl Unpin for DataView
impl UnwindSafe for DataView
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