Trait cdragon_prop::BinSerializer
source · 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§
sourcefn write_entry(&mut self, v: &BinEntry) -> Result<()>
fn write_entry(&mut self, v: &BinEntry) -> Result<()>
Write a single entry
sourcefn write_entries(self) -> Result<Self::EntriesSerializer>
fn write_entries(self) -> Result<Self::EntriesSerializer>
Return a serializer to write streamed entries