pub struct RenderCtx<'a> {
pub error: Option<&'a str>,
}Expand description
Information the runner hands to Prompt::render on every frame.
Fields§
§error: Option<&'a str>Some(msg) when the previous handle() returned Reject; prompts
should switch their header glyph to ▲, color the input bar and
bottom frame yellow, and place msg on the bottom frame line.
Auto Trait Implementations§
impl<'a> Freeze for RenderCtx<'a>
impl<'a> RefUnwindSafe for RenderCtx<'a>
impl<'a> Send for RenderCtx<'a>
impl<'a> Sync for RenderCtx<'a>
impl<'a> Unpin for RenderCtx<'a>
impl<'a> UnsafeUnpin for RenderCtx<'a>
impl<'a> UnwindSafe for RenderCtx<'a>
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