pub enum Packed {
Show 16 variants
Int(BigInt),
Float(f64),
Decimal(BigDecimal),
Str(String),
Bytes(Vec<u8>),
Bool(bool),
None,
List(Vec<Packed>),
Dict(Vec<(String, Packed)>),
Object {
class_id: u32,
class_name: String,
fields: Vec<(String, Packed)>,
},
Function {
fn_id: u32,
name: String,
captures: Vec<Packed>,
},
Class {
fn_id: u32,
name: String,
},
BoundMethod {
receiver: Box<Packed>,
method: String,
},
Error {
kind: ErrorKind,
message: String,
file: String,
line: u32,
},
Socket(SocketState),
Bowl(BowlHandle),
}Expand description
An owned, Send mirror of a Value, holding no Rc so it can move to
another thread. Built by pack_value, consumed by unpack_packed.
Variants§
Int(BigInt)
Float(f64)
Decimal(BigDecimal)
Str(String)
Bytes(Vec<u8>)
Bool(bool)
None
List(Vec<Packed>)
Dict(Vec<(String, Packed)>)
Object
Function
Class
BoundMethod
Error
Socket(SocketState)
Bowl(BowlHandle)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packed
impl RefUnwindSafe for Packed
impl Send for Packed
impl Sync for Packed
impl Unpin for Packed
impl UnsafeUnpin for Packed
impl UnwindSafe for Packed
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