pub struct FrameworkHistory {
pub selectables: Vec<Vec<(usize, usize)>>,
pub data: CloneMap,
pub state: State,
pub cursor: CursorState,
}Expand description
Save state for Framework
Fields§
§selectables: Vec<Vec<(usize, usize)>>Selectable items, auto generated when state is set with new() or set_state()
data: CloneMapGlobal data store for the framework
state: StateDefines the layout of items on screen
cursor: CursorStateThe state and position of cursor
Trait Implementations§
Source§impl Clone for FrameworkHistory
impl Clone for FrameworkHistory
Source§fn clone(&self) -> FrameworkHistory
fn clone(&self) -> FrameworkHistory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<FrameworkHistory> for Framework
impl From<FrameworkHistory> for Framework
Source§fn from(original: FrameworkHistory) -> Framework
fn from(original: FrameworkHistory) -> Framework
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FrameworkHistory
impl !RefUnwindSafe for FrameworkHistory
impl !Send for FrameworkHistory
impl !Sync for FrameworkHistory
impl Unpin for FrameworkHistory
impl !UnwindSafe for FrameworkHistory
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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