Struct rbx_binary::Serializer
source · #[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§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Serializer
impl Send for Serializer
impl Sync for Serializer
impl Unpin for Serializer
impl UnwindSafe for Serializer
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