pub struct OptionsImplBridge<O>(/* private fields */);
Expand description
Create a bridge to RecordsImplLayout
and RecordsImpl
traits from an O
that implements OptionsImpl
. This is required so we can have a single
implementation of parse_with_context
and definition of Context
that
all implementers of OptionsImpl
will get for free.
Trait Implementations§
Source§impl<O: Debug> Debug for OptionsImplBridge<O>
impl<O: Debug> Debug for OptionsImplBridge<O>
Source§impl<'a, O> RecordsImpl<'a> for OptionsImplBridge<O>where
O: OptionsImpl<'a>,
impl<'a, O> RecordsImpl<'a> for OptionsImplBridge<O>where
O: OptionsImpl<'a>,
Source§impl<O> RecordsImplLayout for OptionsImplBridge<O>where
O: OptionsImplLayout,
impl<O> RecordsImplLayout for OptionsImplBridge<O>where
O: OptionsImplLayout,
Source§type Error = OptionParseErr<<O as OptionsImplLayout>::Error>
type Error = OptionParseErr<<O as OptionsImplLayout>::Error>
The type of errors that may be returned by a
RecordsImpl::parse_with_context
.Auto Trait Implementations§
impl<O> Freeze for OptionsImplBridge<O>
impl<O> RefUnwindSafe for OptionsImplBridge<O>where
O: RefUnwindSafe,
impl<O> Send for OptionsImplBridge<O>where
O: Send,
impl<O> Sync for OptionsImplBridge<O>where
O: Sync,
impl<O> Unpin for OptionsImplBridge<O>where
O: Unpin,
impl<O> UnwindSafe for OptionsImplBridge<O>where
O: 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