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: Embeddable, C: DomainParse<D>> DomainDecode<D> for ViaCodec<C>
impl<D: Embeddable, C: DomainParse<D>> DomainDecode<D> for ViaCodec<C>
fn decode_embedded<'de, 'src, S: BinarySource<'de>>( &mut self, src: &'src mut S, read_annotations: bool ) -> Result<D>
source§impl<D: Embeddable, C: DomainDecode<D>> DomainParse<D> for ViaCodec<C>
impl<D: Embeddable, C: DomainDecode<D>> DomainParse<D> for ViaCodec<C>
fn parse_embedded(&mut self, v: &IOValue) -> Result<D>
Auto Trait Implementations§
impl<C> Freeze for ViaCodec<C>where
C: Freeze,
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