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>;
}Expand description
A shared pointer serialization strategy.
This trait is required to serialize Rc and Arc.
Required Methods§
Sourcefn start_sharing(&mut self, address: usize) -> SharingState
fn start_sharing(&mut self, address: usize) -> SharingState
Starts sharing the value associated with the given address.