Trait Sharing
pub trait Sharing<E = <Self as Fallible>::Error> {
// Required methods
fn start_sharing(&mut self, address: usize) -> SharingState;
fn finish_sharing(&mut self, address: usize, pos: usize) -> Result<(), E> ⓘ;
}
Available on crate feature
dep_rkyv
only.Expand description
A shared pointer serialization strategy.
This trait is required to serialize Rc
and Arc
.
Required Methods§
fn start_sharing(&mut self, address: usize) -> SharingState
fn start_sharing(&mut self, address: usize) -> SharingState
Starts sharing the value associated with the given address.