Struct read_input::InputBuilderOnce
source · pub struct InputBuilderOnce<T: FromStr> { /* private fields */ }
Implementations
sourceimpl<T: FromStr> InputBuilderOnce<T>
impl<T: FromStr> InputBuilderOnce<T>
pub fn msg(self, msg: impl ToString) -> Self
pub fn repeat_msg(self, msg: impl ToString) -> Self
pub fn err(self, err: impl ToString) -> Self
pub fn add_test<F: 'static + Fn(&T) -> bool>(self, test: F) -> Self
pub fn add_err_test<F: 'static + Fn(&T) -> bool>(
self,
test: F,
err: impl ToString
) -> Self
pub fn clear_tests(self) -> Self
pub fn err_match<F: 'static + Fn(&T::Err) -> Option<String>>(
self,
err_match: F
) -> Self
pub fn get(self) -> T
Auto Trait Implementations
impl<T> !RefUnwindSafe for InputBuilderOnce<T>
impl<T> !Send for InputBuilderOnce<T>
impl<T> !Sync for InputBuilderOnce<T>
impl<T> Unpin for InputBuilderOnce<T>where
T: Unpin,
impl<T> !UnwindSafe for InputBuilderOnce<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more