Trait rusty_v8::ValueSerializerHelper[][src]

pub trait ValueSerializerHelper {
    fn get_cxx_value_serializer(&mut self) -> &mut CxxValueSerializer;

    fn write_header(&mut self) { ... }
fn write_value(
        &mut self,
        context: Local<'_, Context>,
        value: Local<'_, Value>
    ) -> Option<bool> { ... }
fn write_uint32(&mut self, value: u32) { ... }
fn write_uint64(&mut self, value: u64) { ... }
fn write_double(&mut self, value: f64) { ... }
fn write_raw_bytes(&mut self, source: &[u8]) { ... }
fn transfer_array_buffer(
        &mut self,
        transfer_id: u32,
        array_buffer: Local<'_, ArrayBuffer>
    ) { ... } }
Expand description

Trait used for direct write to the serialization buffer. Mostly used by the write_host_object callback function in the ValueSerializerImpl trait to create custom serialization logic.

Required methods

Provided methods

Implementors