pub struct Element {
pub id: &'static str,
pub label: &'static str,
pub describe: &'static str,
pub region: Option<&'static str>,
pub default: Show,
pub hover: bool,
}Expand description
An element of the interface that can be shown, hidden or moved.
Fields§
§id: &'static str§label: &'static strIts name in Settings.
describe: &'static strWhat it is, for people (and the model).
region: Option<&'static str>The region it can be moved within, if any.
default: Show§hover: boolWhether Show::Hover means something for it (else it acts as shown).
Trait Implementations§
impl Copy for Element
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Forget for Element
impl Freeze for Element
impl Move for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin for Elementwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Elementwhere
&'static str: UnwindSafe,
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