pub struct ModalRenderer { /* private fields */ }Expand description
Modal command palette renderer.
The modal renderer clears its area, draws a rounded border, then renders the
prompt, rows, and footer. It is useful when the palette should interrupt the
current surface. See the render module for the renderer contract
shared by all built-in renderers.
Implementations§
Source§impl ModalRenderer
impl ModalRenderer
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a ModalRenderer with the default title.
Trait Implementations§
Source§impl Clone for ModalRenderer
impl Clone for ModalRenderer
Source§fn clone(&self) -> ModalRenderer
fn clone(&self) -> ModalRenderer
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 ModalRenderer
impl Debug for ModalRenderer
Source§impl Default for ModalRenderer
impl Default for ModalRenderer
Source§impl PaletteRenderer for ModalRenderer
impl PaletteRenderer for ModalRenderer
Auto Trait Implementations§
impl Freeze for ModalRenderer
impl RefUnwindSafe for ModalRenderer
impl Send for ModalRenderer
impl Sync for ModalRenderer
impl Unpin for ModalRenderer
impl UnsafeUnpin for ModalRenderer
impl UnwindSafe for ModalRenderer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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