pub struct Parcode;Expand description
The main entry point for Parcode.
Provides static methods for common operations (save, load, open).
Implementations§
Source§impl Parcode
impl Parcode
Sourcepub fn builder() -> ParcodeOptions
pub fn builder() -> ParcodeOptions
Creates a new builder to configure serialization.
Sourcepub fn save<T, P>(path: P, root_object: &T) -> Result<()>
pub fn save<T, P>(path: P, root_object: &T) -> Result<()>
Saves an object to a file with default settings.
Sourcepub fn open<P: AsRef<Path>>(path: P) -> Result<ParcodeFile>
pub fn open<P: AsRef<Path>>(path: P) -> Result<ParcodeFile>
Opens a Parcode file for advanced usage (Lazy loading, Inspection).
Returns a ParcodeFile handle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parcode
impl RefUnwindSafe for Parcode
impl Send for Parcode
impl Sync for Parcode
impl Unpin for Parcode
impl UnwindSafe for Parcode
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more