pub trait LeptonicaClone {
    // Required method
    unsafe fn clone(&mut self) -> Self;
}
Expand description

Trait to define how leptonica clones this memory.

Usually this would be to call a clone method that increments a reference count.

Required Methods§

source

unsafe fn clone(&mut self) -> Self

Call to leptonica’s internal structure-clone method.

Safety

This must eventually be accompanied by a destroy call to decrement the reference count and possibly free the memory.

The memory will be shared, so must not be mutated.

Implementors§