Struct lusl::Serializer
source · pub struct Serializer { /* private fields */ }
Expand description
Serializer
Serializer struct.
Call serialize
method to serialize all directory contents.
Examples
use lusl::Serializer;
use std::path::PathBuf;
use std::fs;
let original = PathBuf::from("tests");
let result = PathBuf::from("serialized1.bin");
let mut serializer = Serializer::new(original, result.clone()).unwrap();
serializer.serialize().unwrap();
assert!(result.is_file());
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more