pub enum InlineResizePolicy {
ReturnError,
ClearViewportAndRedraw,
}Expand description
What an inline prompt does when its terminal viewport is resized.
Variants§
ReturnError
Stop the form and return RunError::Resized without erasing an
unlocatable prompt region.
ClearViewportAndRedraw
Clear the visible primary-buffer viewport and redraw the current form.
This does not enter the alternate screen or clear scrollback, but it does erase every other visible cell in the viewport.
Trait Implementations§
Source§impl Clone for InlineResizePolicy
impl Clone for InlineResizePolicy
Source§fn clone(&self) -> InlineResizePolicy
fn clone(&self) -> InlineResizePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineResizePolicy
impl Debug for InlineResizePolicy
Source§impl Default for InlineResizePolicy
impl Default for InlineResizePolicy
Source§fn default() -> InlineResizePolicy
fn default() -> InlineResizePolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for InlineResizePolicy
impl PartialEq for InlineResizePolicy
Source§fn eq(&self, other: &InlineResizePolicy) -> bool
fn eq(&self, other: &InlineResizePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InlineResizePolicy
impl Eq for InlineResizePolicy
impl StructuralPartialEq for InlineResizePolicy
Auto Trait Implementations§
impl Freeze for InlineResizePolicy
impl RefUnwindSafe for InlineResizePolicy
impl Send for InlineResizePolicy
impl Sync for InlineResizePolicy
impl Unpin for InlineResizePolicy
impl UnsafeUnpin for InlineResizePolicy
impl UnwindSafe for InlineResizePolicy
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