#[repr(u8)]pub enum CopyFormat {
Text = 0,
Binary = 1,
}Expand description
The data format for a copy operation.
Variants§
Trait Implementations§
Source§impl Clone for CopyFormat
impl Clone for CopyFormat
Source§fn clone(&self) -> CopyFormat
fn clone(&self) -> CopyFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DataType for CopyFormat
impl DataType for CopyFormat
const META: StructFieldMeta
fn encode_usize(buf: &mut BufWriter<'_>, value: usize)
fn decode_usize(buf: &mut &[u8]) -> Result<usize, ParseError>
Source§impl DataTypeFixedSize for CopyFormat
impl DataTypeFixedSize for CopyFormat
Source§impl Debug for CopyFormat
impl Debug for CopyFormat
Source§impl<'a> DecoderFor<'a, CopyFormat> for CopyFormat
impl<'a> DecoderFor<'a, CopyFormat> for CopyFormat
fn decode_for(buf: &mut &'a [u8]) -> Result<Self, ParseError>
Source§impl Default for CopyFormat
impl Default for CopyFormat
Source§fn default() -> CopyFormat
fn default() -> CopyFormat
Returns the “default value” for a type. Read more
Source§impl EncoderFor<CopyFormat> for &CopyFormat
impl EncoderFor<CopyFormat> for &CopyFormat
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl EncoderFor<CopyFormat> for CopyFormat
impl EncoderFor<CopyFormat> for CopyFormat
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl PartialEq for CopyFormat
impl PartialEq for CopyFormat
impl Copy for CopyFormat
impl Eq for CopyFormat
impl StructuralPartialEq for CopyFormat
Auto Trait Implementations§
impl Freeze for CopyFormat
impl RefUnwindSafe for CopyFormat
impl Send for CopyFormat
impl Sync for CopyFormat
impl Unpin for CopyFormat
impl UnwindSafe for CopyFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncoderForExt for Twhere
T: ?Sized,
impl<T> EncoderForExt for Twhere
T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.