pub struct Legends<CA, CM>{ /* private fields */ }Expand description
A component to display a colored indicator alternating colors based on the frame rate of the terminal.
Implementations§
Trait Implementations§
Source§impl<CID, CA, CS, CM> Component<CID, CA, CS, CM> for Legends<CA, CM>
impl<CID, CA, CS, CM> Component<CID, CA, CS, CM> for Legends<CA, CM>
Source§fn on_event(
&mut self,
_event: EzEvent<CID, CM>,
state: &mut State<CS>,
) -> Vec<EzEvent<CID, CM>>
fn on_event( &mut self, _event: EzEvent<CID, CM>, state: &mut State<CS>, ) -> Vec<EzEvent<CID, CM>>
Method to implement to handle events.
The component will receive any event if it is focused; but only events it is subscribed to otherwise.
Source§fn init(&mut self, state: &mut State<CS>) -> Vec<EzEvent<CID, CM>>
fn init(&mut self, state: &mut State<CS>) -> Vec<EzEvent<CID, CM>>
Method called on first tick only.
Source§impl<CA, CM> MockComponent for Legends<CA, CM>
impl<CA, CM> MockComponent for Legends<CA, CM>
Auto Trait Implementations§
impl<CA, CM> Freeze for Legends<CA, CM>
impl<CA, CM> RefUnwindSafe for Legends<CA, CM>
impl<CA, CM> Send for Legends<CA, CM>
impl<CA, CM> Sync for Legends<CA, CM>
impl<CA, CM> Unpin for Legends<CA, CM>
impl<CA, CM> UnsafeUnpin for Legends<CA, CM>
impl<CA, CM> UnwindSafe for Legends<CA, CM>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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