pub struct Closure { /* private fields */ }Implementations§
Source§impl Closure
impl Closure
pub fn new<N: AsRef<str>, F: AsRef<str>>( name: N, supported_format: F, parser: BoxedParseFn, ) -> Self
pub fn with_validator(self, validator: BoxedValidatorFn) -> Self
pub fn with_format_list<N: AsRef<str>>(self, format_list: &[N]) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Closure
impl !Send for Closure
impl !Sync for Closure
impl !UnwindSafe for Closure
impl Freeze for Closure
impl Unpin for Closure
impl UnsafeUnpin for Closure
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