Struct leptonica_plumbing::Pixa
source · pub struct Pixa(/* private fields */);
Expand description
Wrapper around Leptonica’s Pixa
structure
Implementations§
source§impl Pixa
impl Pixa
sourcepub unsafe fn new_from_pointer(p: *mut Pixa) -> Self
pub unsafe fn new_from_pointer(p: *mut Pixa) -> Self
Create a new Pixa from a pointer
§Safety
The pointer must be to a valid Pixa struct. The Pixa struct must not be mutated whilst the wrapper exists.
sourcepub fn read_multipage_tiff(filename: &CStr) -> Option<RefCountedExclusive<Self>>
pub fn read_multipage_tiff(filename: &CStr) -> Option<RefCountedExclusive<Self>>
Wrapper for pixaReadMultipageTiff
sourcepub fn get_count(&self) -> l_int32
pub fn get_count(&self) -> l_int32
Wrapper for pixaGetCount
sourcepub fn get_pix_copied(&self, index: l_int32) -> Option<RefCountedExclusive<Pix>>
pub fn get_pix_copied(&self, index: l_int32) -> Option<RefCountedExclusive<Pix>>
Wrapper for pixaGetPix
with copied accessflag
: L_COPY
pub fn get_pix_cloned(&self, index: l_int32) -> Option<RefCounted<Pix>>
Trait Implementations§
source§impl LeptonicaDestroy for Pixa
impl LeptonicaDestroy for Pixa
source§impl PartialEq for Pixa
impl PartialEq for Pixa
impl StructuralPartialEq for Pixa
Auto Trait Implementations§
impl Freeze for Pixa
impl RefUnwindSafe for Pixa
impl !Send for Pixa
impl !Sync for Pixa
impl Unpin for Pixa
impl UnwindSafe for Pixa
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