pub struct Text { /* private fields */ }Expand description
A question that a user answers with one line of text
The answer is the line as the user typed it, without the characters that end the line. A prompt does not trim or validate the answer, and the answer can be empty.
§Examples
use clawless_core::prompt::Text;
let question = Text::new("Title of the change");
assert_eq!(question.question(), "Title of the change");Implementations§
Trait Implementations§
impl Eq for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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