pub struct PromptInfo {
pub line_number: usize,
pub focused: bool,
}Expand description
PromptInfo is a struct that can be used to store information about the prompt.
Fields§
§line_number: usizeThe line number of the prompt.
focused: boolWhether the textarea is focused.
Trait Implementations§
Source§impl Clone for PromptInfo
impl Clone for PromptInfo
Source§fn clone(&self) -> PromptInfo
fn clone(&self) -> PromptInfo
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 moreimpl Copy for PromptInfo
Auto Trait Implementations§
impl Freeze for PromptInfo
impl RefUnwindSafe for PromptInfo
impl Send for PromptInfo
impl Sync for PromptInfo
impl Unpin for PromptInfo
impl UnsafeUnpin for PromptInfo
impl UnwindSafe for PromptInfo
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