pub struct Info { /* private fields */ }Expand description
A simple static widget, meant to just convey information
This is the most flexible of widgets, you can use it anywhere,
just by pushing it around, or spawning it however you want, by
making use of the PushSpecs, DynSpawnSpecs o
StaticSpawnSpecs.
Implementations§
Source§impl Info
impl Info
Sourcepub fn new(text: Text) -> Self
pub fn new(text: Text) -> Self
Returns a new Info widget
This is the only Widget in duat-base that can be
acquired this way, since it’s supposed to be versatile in
where you position it. Every other widget has to be placed in
specific locations, so they don’t offer a new method, which
could be used in order to place them willy nilly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Info
impl !RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Info
impl !UnwindSafe for Info
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