pub enum PickleValue {
None,
Bool(bool),
Int(i64),
Float(f64),
Text(String),
Bytes(Vec<u8>),
Tuple(Vec<ValueId>),
List(Vec<ValueId>),
Dict(Vec<(ValueId, ValueId)>),
Set(Vec<ValueId>),
Global {
module: String,
name: String,
},
Object {
class: ValueId,
construction: Construction,
args: Vec<ValueId>,
state: Option<ValueId>,
items: Vec<ValueId>,
entries: Vec<(ValueId, ValueId)>,
},
}Expand description
One value a pickle builds.
Variants§
None
None.
Bool(bool)
True or False.
Int(i64)
An int that fits in 64 bits.
Float(f64)
A float.
Text(String)
A str.
Bytes(Vec<u8>)
A bytes.
Tuple(Vec<ValueId>)
A tuple.
List(Vec<ValueId>)
A list.
Dict(Vec<(ValueId, ValueId)>)
A dict, its items in order.
Set(Vec<ValueId>)
A set or frozenset.
Global
A class or function, by its module and name.
Object
An object made from a class or callable.
Fields
§
class: ValueIdThe PickleValue::Global it was made from.
§
construction: ConstructionHow it was made.
Trait Implementations§
Source§impl Clone for PickleValue
impl Clone for PickleValue
Source§impl Debug for PickleValue
impl Debug for PickleValue
Source§impl PartialEq for PickleValue
impl PartialEq for PickleValue
impl StructuralPartialEq for PickleValue
Auto Trait Implementations§
impl Forget for PickleValue
impl Freeze for PickleValue
impl Move for PickleValue
impl RefUnwindSafe for PickleValue
impl Send for PickleValue
impl Sync for PickleValue
impl Unpin for PickleValue
impl UnsafeUnpin for PickleValue
impl UnwindSafe for PickleValue
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more