Struct rbx_binary::Serializer[][src]

#[non_exhaustive]
pub struct Serializer {}
Expand description

A configurable serializer for Roblox binary models and places.

Example

use std::fs::File;
use std::io::BufWriter;

use rbx_binary::Serializer;
use rbx_dom_weak::{InstanceBuilder, WeakDom};

let dom = WeakDom::new(InstanceBuilder::new("Folder"));

let output = BufWriter::new(File::create("PlainFolder.rbxm")?);
let serializer = Serializer::new();
serializer.serialize(output, &dom, &[dom.root_ref()])?;

Implementations

Create a new Serializer with the default settings.

Serialize a Roblox binary model or place into the given stream using this serializer.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.