pub struct StringDecoder;Expand description
Implements Decoder that allocates an owned UTF-8 String with a copy
of the given bytes. This decoder fails with FromUtf8Error if the given
bytes cannot be interpreted as valid UTF-8.
Trait Implementations§
Source§impl Decoder for StringDecoder
impl Decoder for StringDecoder
Source§type Error = FromUtf8Error
type Error = FromUtf8Error
The type of error produced when decoding is not possible.
Source§impl Default for StringDecoder
impl Default for StringDecoder
Source§fn default() -> StringDecoder
fn default() -> StringDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StringDecoder
impl RefUnwindSafe for StringDecoder
impl Send for StringDecoder
impl Sync for StringDecoder
impl Unpin for StringDecoder
impl UnwindSafe for StringDecoder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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