Struct leptonica_plumbing::Boxa
source · pub struct Boxa(/* private fields */);
Expand description
Wrapper around Leptonica’s Boxa
structure
Implementations§
source§impl Boxa
impl Boxa
sourcepub unsafe fn new_from_pointer(p: *mut Boxa) -> Self
pub unsafe fn new_from_pointer(p: *mut Boxa) -> Self
Create a new Boxa from a pointer
§Safety
The pointer must be to a valid Boxa struct. The Boxa struct must not be mutated whilst the wrapper exists.
sourcepub fn create(n: l_int32) -> Option<RefCountedExclusive<Boxa>>
pub fn create(n: l_int32) -> Option<RefCountedExclusive<Boxa>>
Wrapper for boxaCreate
Input: n (initial number of ptrs) Return: boxa, or null on error
sourcepub fn get_count(&self) -> l_int32
pub fn get_count(&self) -> l_int32
Wrapper for boxaGetCount
sourcepub fn get_box_copied(&self, index: l_int32) -> Option<RefCountedExclusive<Box>>
pub fn get_box_copied(&self, index: l_int32) -> Option<RefCountedExclusive<Box>>
Wrapper for boxaGetBox
with copied accessflag
: L_COPY
sourcepub fn get_box_cloned(&self, index: l_int32) -> Option<RefCounted<Box>>
pub fn get_box_cloned(&self, index: l_int32) -> Option<RefCounted<Box>>
Wrapper for boxaGetBox
with copied accessflag
: L_CLONE
Trait Implementations§
source§impl LeptonicaDestroy for Boxa
impl LeptonicaDestroy for Boxa
source§impl PartialEq for Boxa
impl PartialEq for Boxa
impl StructuralPartialEq for Boxa
Auto Trait Implementations§
impl Freeze for Boxa
impl RefUnwindSafe for Boxa
impl !Send for Boxa
impl !Sync for Boxa
impl Unpin for Boxa
impl UnwindSafe for Boxa
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more