pub struct Viewdata {
pub kind: Kind,
pub reveal: bool,
/* private fields */
}Fields§
§kind: Kind§reveal: boolConcealed text shown (Reveal).
Implementations§
Source§impl Viewdata
impl Viewdata
pub fn new(kind: Kind) -> Viewdata
pub fn start(&mut self, s: &mut Screen)
Sourcepub fn toggle_reveal(&mut self, s: &mut Screen) -> bool
pub fn toggle_reveal(&mut self, s: &mut Screen) -> bool
Show concealed text, or hide it again.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Viewdata
impl RefUnwindSafe for Viewdata
impl Send for Viewdata
impl Sync for Viewdata
impl Unpin for Viewdata
impl UnsafeUnpin for Viewdata
impl UnwindSafe for Viewdata
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, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.