Struct smart_read::one_time_logic::TransformValidate
source · pub struct TransformValidate<F: Fn(String) -> Result<O, String>, O: Display>(pub F);
Expand description
Allows you to keep reading until a transform is valid
Tuple Fields§
§0: F
Trait Implementations§
Auto Trait Implementations§
impl<F, O> Freeze for TransformValidate<F, O>where
F: Freeze,
impl<F, O> RefUnwindSafe for TransformValidate<F, O>where
F: RefUnwindSafe,
impl<F, O> Send for TransformValidate<F, O>where
F: Send,
impl<F, O> Sync for TransformValidate<F, O>where
F: Sync,
impl<F, O> Unpin for TransformValidate<F, O>where
F: Unpin,
impl<F, O> UnwindSafe for TransformValidate<F, O>where
F: UnwindSafe,
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