pub enum PromptStart {
NewLine,
CurrentLine,
CurrentPosition {
column: u16,
},
}Expand description
Where a prompt establishes the left edge of its owned region.
Variants§
NewLine
Starts on a new line at column zero.
This is the default and always emits a carriage return and line feed before the first frame.
CurrentLine
Starts at column zero of the cursor’s current line, overwriting it.
CurrentPosition
Starts at the cursor’s current position, whose column is supplied by the caller rather than queried from the terminal. If the terminal later becomes narrower than that column, the prompt uses its last column.
Trait Implementations§
Source§impl Clone for PromptStart
impl Clone for PromptStart
Source§fn clone(&self) -> PromptStart
fn clone(&self) -> PromptStart
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 PromptStart
impl Debug for PromptStart
Source§impl Default for PromptStart
impl Default for PromptStart
Source§fn default() -> PromptStart
fn default() -> PromptStart
Returns the “default value” for a type. Read more
Source§impl PartialEq for PromptStart
impl PartialEq for PromptStart
Source§fn eq(&self, other: &PromptStart) -> bool
fn eq(&self, other: &PromptStart) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PromptStart
impl Eq for PromptStart
impl StructuralPartialEq for PromptStart
Auto Trait Implementations§
impl Freeze for PromptStart
impl RefUnwindSafe for PromptStart
impl Send for PromptStart
impl Sync for PromptStart
impl Unpin for PromptStart
impl UnsafeUnpin for PromptStart
impl UnwindSafe for PromptStart
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