pub trait SnapshotTokenController: TokenFilterController + Sized {
// Required methods
fn snapshot_storage_bytes(&self) -> Option<u64>;
fn fork_snapshot(&self) -> Result<Self, String>;
}Expand description
Explicit independent-copy contract for the canonical constraint owner. A
shallow Clone of grammar or mutable handles does not provide this guarantee.
Required Methods§
Sourcefn snapshot_storage_bytes(&self) -> Option<u64>
fn snapshot_storage_bytes(&self) -> Option<u64>
Complete logical controller storage, including mutable grammar state. Unknown state costs disable snapshots before any copying occurs.
Sourcefn fork_snapshot(&self) -> Result<Self, String>
fn fork_snapshot(&self) -> Result<Self, String>
Copies without committing tokens, changing the source or sharing mutable parser state. Errors preserve the source and all existing snapshots.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".