Struct biodivine_sketchbook::app::state::editor::_state_tab_bar::TabBarState
source · pub struct TabBarState {
active: AtomicState<u32>,
pinned: AtomicState<Vec<u32>>,
}
Fields§
§active: AtomicState<u32>
§pinned: AtomicState<Vec<u32>>
Trait Implementations§
source§impl Default for TabBarState
impl Default for TabBarState
source§fn default() -> TabBarState
fn default() -> TabBarState
Returns the “default value” for a type. Read more
source§impl SessionHelper for TabBarState
impl SessionHelper for TabBarState
source§fn starts_with<'a, 'b>(
prefix: &str,
at_path: &'a [&'b str],
) -> Option<&'a [&'b str]>
fn starts_with<'a, 'b>( prefix: &str, at_path: &'a [&'b str], ) -> Option<&'a [&'b str]>
A utility function which checks if
at_path
starts with a specific first segment.
If yes, returns the remaining part of the path.source§fn matches(expected: &[&str], at_path: &[&str]) -> bool
fn matches(expected: &[&str], at_path: &[&str]) -> bool
A utility function which checks if
at_path
is exactlysource§fn invalid_path_error_generic<T>(at_path: &[&str]) -> Result<T, DynError>
fn invalid_path_error_generic<T>(at_path: &[&str]) -> Result<T, DynError>
A utility function which emits a generic “invalid path” error.
source§fn invalid_path_error_specific<T>(
path: &[&str],
component: &str,
) -> Result<T, DynError>
fn invalid_path_error_specific<T>( path: &[&str], component: &str, ) -> Result<T, DynError>
A utility function which emits a “invalid path” error mentioning specific state’s
component
.source§fn clone_payload_str(event: &Event, component: &str) -> Result<String, DynError>
fn clone_payload_str(event: &Event, component: &str) -> Result<String, DynError>
A utility function to get and clone a payload of an event. Errors if payload is empty. Read more
source§impl SessionState for TabBarState
impl SessionState for TabBarState
Auto Trait Implementations§
impl Freeze for TabBarState
impl RefUnwindSafe for TabBarState
impl Send for TabBarState
impl Sync for TabBarState
impl Unpin for TabBarState
impl UnwindSafe for TabBarState
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