pub struct ViaCodec<C>(/* private fields */);Expand description
If some C implements DomainDecode but not DomainParse, or vice versa, use ViaCodec
to promote the one to the other. Construct instances with ViaCodec::new.
Implementations§
Trait Implementations§
source§impl<D, C> DomainDecode<D> for ViaCodec<C>where
D: Embeddable,
C: DomainParse<D>,
impl<D, C> DomainDecode<D> for ViaCodec<C>where
D: Embeddable,
C: DomainParse<D>,
fn decode_embedded<'de, 'src, S>(
&mut self,
src: &'src mut S,
read_annotations: bool
) -> Result<D, Error>where
S: BinarySource<'de>,
source§impl<D, C> DomainParse<D> for ViaCodec<C>where
D: Embeddable,
C: DomainDecode<D>,
impl<D, C> DomainParse<D> for ViaCodec<C>where
D: Embeddable,
C: DomainDecode<D>,
Auto Trait Implementations§
impl<C> RefUnwindSafe for ViaCodec<C>where
C: RefUnwindSafe,
impl<C> Send for ViaCodec<C>where
C: Send,
impl<C> Sync for ViaCodec<C>where
C: Sync,
impl<C> Unpin for ViaCodec<C>where
C: Unpin,
impl<C> UnwindSafe for ViaCodec<C>where
C: 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