pub struct Inlay { /* private fields */ }Expand description
Implementations§
Source§impl Inlay
impl Inlay
Sourcepub fn new(value: impl Into<Text>) -> Self
pub fn new(value: impl Into<Text>) -> Self
Returns a new inlay type Inlay, which can be inserted on
Text.
This ghost Text will be placed as if it were regular text,
taking up space on screen, shifting the real text around to
accomodate itself. One of the most prominent uses of it is in
the prompt text of the PromptLine.
If you want ghost Text that goes over the real Text,
check out Overlay.
Trait Implementations§
Source§impl AsBuilderPart for Inlay
impl AsBuilderPart for Inlay
Source§fn as_builder_part(&self) -> BuilderPart<'_>
fn as_builder_part(&self) -> BuilderPart<'_>
Gets a
BuilderPart fro this valueAuto Trait Implementations§
impl Freeze for Inlay
impl !RefUnwindSafe for Inlay
impl Send for Inlay
impl Sync for Inlay
impl Unpin for Inlay
impl UnsafeUnpin for Inlay
impl !UnwindSafe for Inlay
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