Enum bincode2::LengthOption
source · [−]pub enum LengthOption {
U64,
U32,
U16,
U8,
}
Expand description
Used to specify the unit used for length of strings and arrays via config.string_length
or config.array_length
.
Variants
U64
64 unsigned bits
U32
32 unsigned bits
U16
16 unsigned bits
U8
8 unsigned bits
Trait Implementations
sourceimpl Clone for LengthOption
impl Clone for LengthOption
sourcefn clone(&self) -> LengthOption
fn clone(&self) -> LengthOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LengthOption
impl Debug for LengthOption
impl Copy for LengthOption
Auto Trait Implementations
impl RefUnwindSafe for LengthOption
impl Send for LengthOption
impl Sync for LengthOption
impl Unpin for LengthOption
impl UnwindSafe for LengthOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more