pub enum PickleProtocol {
V2,
V3,
}Expand description
Pickle protocol used by write_pickle_bytes_with_options.
Variants§
V2
Python pickle protocol 2, compatible with Python 2 and 3.
V3
Python pickle protocol 3, the serde-pickle default.
Trait Implementations§
Source§impl Clone for PickleProtocol
impl Clone for PickleProtocol
Source§fn clone(&self) -> PickleProtocol
fn clone(&self) -> PickleProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PickleProtocol
Source§impl Debug for PickleProtocol
impl Debug for PickleProtocol
impl Eq for PickleProtocol
Source§impl PartialEq for PickleProtocol
impl PartialEq for PickleProtocol
impl StructuralPartialEq for PickleProtocol
Auto Trait Implementations§
impl Freeze for PickleProtocol
impl RefUnwindSafe for PickleProtocol
impl Send for PickleProtocol
impl Sync for PickleProtocol
impl Unpin for PickleProtocol
impl UnsafeUnpin for PickleProtocol
impl UnwindSafe for PickleProtocol
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.