Struct leptonica_plumbing::Pixa

source ·
pub struct Pixa(/* private fields */);
Expand description

Wrapper around Leptonica’s Pixa structure

Implementations§

source§

impl Pixa

source

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.

source

pub fn read_multipage_tiff(filename: &CStr) -> Option<RefCountedExclusive<Self>>

source

pub fn get_count(&self) -> l_int32

Wrapper for pixaGetCount

source

pub fn get_pix_copied(&self, index: l_int32) -> Option<RefCountedExclusive<Pix>>

Wrapper for pixaGetPix with copied accessflag: L_COPY

source

pub fn get_pix_cloned(&self, index: l_int32) -> Option<RefCounted<Pix>>

Trait Implementations§

source§

impl AsMut<Pixa> for Pixa

source§

fn as_mut(&mut self) -> &mut Pixa

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<Pixa> for Pixa

source§

fn as_ref(&self) -> &Pixa

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for Pixa

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl LeptonicaDestroy for Pixa

source§

unsafe fn destroy(&mut self)

Call to leptonica’s internal structure-destroy method. Read more
source§

impl PartialEq for Pixa

source§

fn eq(&self, other: &Pixa) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.