pub struct State<U: Ui, _T: Clone = (), D: Display + Send + Clone = String, W: 'static = ()> { /* private fields */ }Expand description
A part of the StatusLine
This can either be a static part, like Text, impl Display
type, or it can be a reader of the File and its structs, or it
can update independently.
Implementations§
Trait Implementations§
Source§impl<U: Ui> From<AlignCenter> for State<U, AlignCenter>
impl<U: Ui> From<AlignCenter> for State<U, AlignCenter>
Source§fn from(_: AlignCenter) -> Self
fn from(_: AlignCenter) -> Self
Converts to this type from the input type.
Source§impl<U: Ui> From<AlignRight> for State<U, AlignRight>
impl<U: Ui> From<AlignRight> for State<U, AlignRight>
Source§fn from(_: AlignRight) -> Self
fn from(_: AlignRight) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<U, _T, D, W> Freeze for State<U, _T, D, W>where
D: Freeze,
impl<U, _T = (), D = String, W = ()> !RefUnwindSafe for State<U, _T, D, W>
impl<U, _T, D, W> Send for State<U, _T, D, W>where
_T: Send,
impl<U, _T = (), D = String, W = ()> !Sync for State<U, _T, D, W>
impl<U, _T, D, W> Unpin for State<U, _T, D, W>
impl<U, _T = (), D = String, W = ()> !UnwindSafe for State<U, _T, D, W>
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