pub struct Readline<H>(/* private fields */)
where
H: Helper;Implementations§
Source§impl<H> Readline<H>where
H: Helper,
impl<H> Readline<H>where
H: Helper,
pub fn new(helper: H) -> Readline<H>
pub fn load_history(&mut self, path: &Path) -> Result<(), Box<dyn Error>>
pub fn save_history(&mut self, path: &Path) -> Result<(), Box<dyn Error>>
pub fn add_history_entry(&mut self, entry: &str) -> Result<(), Box<dyn Error>>
pub fn readline(&mut self, prompt: &str) -> ReadlineResult
Auto Trait Implementations§
impl<H> !RefUnwindSafe for Readline<H>
impl<H> !UnwindSafe for Readline<H>
impl<H> Freeze for Readline<H>
impl<H> Send for Readline<H>
impl<H> Sync for Readline<H>
impl<H> Unpin for Readline<H>
impl<H> UnsafeUnpin for Readline<H>where
Readline<H>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
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