pub enum BytecodeChunk {
Valid {
bytecode_version: u8,
type_version: u8,
strings: Vec<Vec<u8>>,
userdata_type_mappings: Vec<UserdataTypeMapping>,
userdata_mapping_terminator: u8,
protos: Vec<Proto>,
main_proto: u32,
},
Error {
message: Vec<u8>,
},
}Expand description
One decoded bytecode blob.
Variants§
Valid
Valid bytecode chunk.
Fields
§
userdata_type_mappings: Vec<UserdataTypeMapping>Userdata type-name mappings in wire order.
Error
Non-throwing upstream compile error bytecode.
Trait Implementations§
Source§impl Clone for BytecodeChunk
impl Clone for BytecodeChunk
Source§fn clone(&self) -> BytecodeChunk
fn clone(&self) -> BytecodeChunk
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 moreSource§impl Debug for BytecodeChunk
impl Debug for BytecodeChunk
Source§impl<'de> Deserialize<'de> for BytecodeChunk
impl<'de> Deserialize<'de> for BytecodeChunk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BytecodeChunk
impl PartialEq for BytecodeChunk
Source§fn eq(&self, other: &BytecodeChunk) -> bool
fn eq(&self, other: &BytecodeChunk) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BytecodeChunk
impl Serialize for BytecodeChunk
impl StructuralPartialEq for BytecodeChunk
Auto Trait Implementations§
impl Freeze for BytecodeChunk
impl RefUnwindSafe for BytecodeChunk
impl Send for BytecodeChunk
impl Sync for BytecodeChunk
impl Unpin for BytecodeChunk
impl UnsafeUnpin for BytecodeChunk
impl UnwindSafe for BytecodeChunk
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