pub trait StateSync: Sized {
type SyncCtx;
// Provided method
fn sync(&mut self, _sync_ctx: Self::SyncCtx) -> ParselyResult<()> { ... }
}
Expand description
A trait for syncing a field with any required context. In order to prevent accidental misses
of this trait, it’s required for all ParselyWrite
implementors. When generating the
ParselyWrite
implementation, sync
will be called on every field.
Required Associated Types§
Provided Methods§
fn sync(&mut self, _sync_ctx: Self::SyncCtx) -> ParselyResult<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.