pub struct Default<P, T>(/* private fields */);
Trait Implementations§
Source§impl<T, F: Fn() -> T, P: Parse<Value = Option<T>>> Parse for Default<P, F>
impl<T, F: Fn() -> T, P: Parse<Value = Option<T>>> Parse for Default<P, F>
type State = <P as Parse>::State
type Value = T
fn initialize(&self, context: Context<'_>) -> Result<Self::State, Error>
fn parse( &self, state: Self::State, context: Context<'_>, ) -> Result<Self::State, Error>
fn finalize( &self, state: Self::State, context: Context<'_>, ) -> Result<Self::Value, Error>
Auto Trait Implementations§
impl<P, T> Freeze for Default<P, T>
impl<P, T> RefUnwindSafe for Default<P, T>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<P, T> Send for Default<P, T>
impl<P, T> Sync for Default<P, T>
impl<P, T> Unpin for Default<P, T>
impl<P, T> UnwindSafe for Default<P, T>where
P: UnwindSafe,
T: 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