pub struct CsvCodec;Expand description
CSV wire format codec (encode only).
Trait Implementations§
Source§impl Codec for CsvCodec
impl Codec for CsvCodec
Source§fn encode_grid(&self, grid: &HGrid) -> Result<String, CodecError>
fn encode_grid(&self, grid: &HGrid) -> Result<String, CodecError>
Encode an HGrid to a string.
Source§fn decode_grid(&self, _input: &str) -> Result<HGrid, CodecError>
fn decode_grid(&self, _input: &str) -> Result<HGrid, CodecError>
Decode a string to an HGrid.
Source§fn encode_scalar(&self, val: &Kind) -> Result<String, CodecError>
fn encode_scalar(&self, val: &Kind) -> Result<String, CodecError>
Encode a single scalar Kind value to a string.
Source§fn decode_scalar(&self, input: &str) -> Result<Kind, CodecError>
fn decode_scalar(&self, input: &str) -> Result<Kind, CodecError>
Decode a string to a single scalar Kind value.
Auto Trait Implementations§
impl Freeze for CsvCodec
impl RefUnwindSafe for CsvCodec
impl Send for CsvCodec
impl Sync for CsvCodec
impl Unpin for CsvCodec
impl UnsafeUnpin for CsvCodec
impl UnwindSafe for CsvCodec
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