pub struct Phantom { /* private fields */ }
Expand description
§Spinner
a component which is not rendered. It only purpose is to become a global listener in a tui-realm application for some kind of events using subscriptions.
Trait Implementations§
Source§impl MockComponent for Phantom
impl MockComponent for Phantom
Source§fn view(&mut self, _render: &mut Frame<'_>, _area: Rect)
fn view(&mut self, _render: &mut Frame<'_>, _area: Rect)
Based on the current properties and states, renders the component in the provided area frame.
Render can also mutate the component state if this is required
Source§fn query(&self, attr: Attribute) -> Option<AttrValue>
fn query(&self, attr: Attribute) -> Option<AttrValue>
Query attribute of component properties.
Auto Trait Implementations§
impl Freeze for Phantom
impl RefUnwindSafe for Phantom
impl Send for Phantom
impl Sync for Phantom
impl Unpin for Phantom
impl UnwindSafe for Phantom
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> 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