pub trait BinSerializer {
    type EntriesSerializer: BinEntriesSerializer;

Show 29 methods // Required methods fn write_entry(&mut self, v: &BinEntry) -> Result<()>; fn write_entries(self) -> Result<Self::EntriesSerializer>; fn write_none(&mut self, v: &BinNone) -> Result<()>; fn write_bool(&mut self, v: &BinBool) -> Result<()>; fn write_s8(&mut self, v: &BinS8) -> Result<()>; fn write_u8(&mut self, v: &BinU8) -> Result<()>; fn write_s16(&mut self, v: &BinS16) -> Result<()>; fn write_u16(&mut self, v: &BinU16) -> Result<()>; fn write_s32(&mut self, v: &BinS32) -> Result<()>; fn write_u32(&mut self, v: &BinU32) -> Result<()>; fn write_s64(&mut self, v: &BinS64) -> Result<()>; fn write_u64(&mut self, v: &BinU64) -> Result<()>; fn write_float(&mut self, v: &BinFloat) -> Result<()>; fn write_vec2(&mut self, v: &BinVec2) -> Result<()>; fn write_vec3(&mut self, v: &BinVec3) -> Result<()>; fn write_vec4(&mut self, v: &BinVec4) -> Result<()>; fn write_matrix(&mut self, v: &BinMatrix) -> Result<()>; fn write_color(&mut self, v: &BinColor) -> Result<()>; fn write_string(&mut self, v: &BinString) -> Result<()>; fn write_hash(&mut self, v: &BinHash) -> Result<()>; fn write_path(&mut self, v: &BinPath) -> Result<()>; fn write_link(&mut self, v: &BinLink) -> Result<()>; fn write_flag(&mut self, v: &BinFlag) -> Result<()>; fn write_list(&mut self, v: &BinList) -> Result<()>; fn write_struct(&mut self, v: &BinStruct) -> Result<()>; fn write_embed(&mut self, v: &BinEmbed) -> Result<()>; fn write_option(&mut self, v: &BinOption) -> Result<()>; fn write_map(&mut self, v: &BinMap) -> Result<()>; // Provided method fn write_binfile(self, v: &PropFile) -> Result<()> where Self: Sized { ... }
}
Expand description

Serialize bin data

Required Associated Types§

Required Methods§

source

fn write_entry(&mut self, v: &BinEntry) -> Result<()>

Write a single entry

source

fn write_entries(self) -> Result<Self::EntriesSerializer>

Return a serializer to write streamed entries

source

fn write_none(&mut self, v: &BinNone) -> Result<()>

source

fn write_bool(&mut self, v: &BinBool) -> Result<()>

source

fn write_s8(&mut self, v: &BinS8) -> Result<()>

source

fn write_u8(&mut self, v: &BinU8) -> Result<()>

source

fn write_s16(&mut self, v: &BinS16) -> Result<()>

source

fn write_u16(&mut self, v: &BinU16) -> Result<()>

source

fn write_s32(&mut self, v: &BinS32) -> Result<()>

source

fn write_u32(&mut self, v: &BinU32) -> Result<()>

source

fn write_s64(&mut self, v: &BinS64) -> Result<()>

source

fn write_u64(&mut self, v: &BinU64) -> Result<()>

source

fn write_float(&mut self, v: &BinFloat) -> Result<()>

source

fn write_vec2(&mut self, v: &BinVec2) -> Result<()>

source

fn write_vec3(&mut self, v: &BinVec3) -> Result<()>

source

fn write_vec4(&mut self, v: &BinVec4) -> Result<()>

source

fn write_matrix(&mut self, v: &BinMatrix) -> Result<()>

source

fn write_color(&mut self, v: &BinColor) -> Result<()>

source

fn write_string(&mut self, v: &BinString) -> Result<()>

source

fn write_hash(&mut self, v: &BinHash) -> Result<()>

source

fn write_path(&mut self, v: &BinPath) -> Result<()>

source

fn write_flag(&mut self, v: &BinFlag) -> Result<()>

source

fn write_list(&mut self, v: &BinList) -> Result<()>

source

fn write_struct(&mut self, v: &BinStruct) -> Result<()>

source

fn write_embed(&mut self, v: &BinEmbed) -> Result<()>

source

fn write_option(&mut self, v: &BinOption) -> Result<()>

source

fn write_map(&mut self, v: &BinMap) -> Result<()>

Provided Methods§

source

fn write_binfile(self, v: &PropFile) -> Result<()>
where Self: Sized,

Write entries from a PropFile

Implementors§

source§

impl<'a, W: Write> BinSerializer for JsonSerializer<'a, W>

§

type EntriesSerializer = JsonEntriesSerializer<'a, W>

source§

impl<'a, W: Write> BinSerializer for TextTreeSerializer<'a, W>

§

type EntriesSerializer = TextTreeEntriesSerializer<'a, W>