Struct leptonica_plumbing::Box
source · pub struct Box(/* private fields */);
Expand description
Wrapper around Leptonica’s Box
structure
Implementations§
source§impl Box
impl Box
sourcepub unsafe fn new_from_pointer(b: *mut Box) -> Self
pub unsafe fn new_from_pointer(b: *mut Box) -> Self
Create an owned Box from a box pointer
§Safety
The pointer must be to a valid Box struct. The data pointed at may not be mutated while held by this struct except by this struct. On drop, the destroy method will be called (decrements the ref counter).
sourcepub fn create_valid(
x: l_int32,
y: l_int32,
w: l_int32,
h: l_int32
) -> Result<RefCountedExclusive<Self>, BoxCreateValidError>
pub fn create_valid( x: l_int32, y: l_int32, w: l_int32, h: l_int32 ) -> Result<RefCountedExclusive<Self>, BoxCreateValidError>
Wrapper for boxCreateValid
Input: x, y, w, h Return: box
Trait Implementations§
source§impl LeptonicaDestroy for Box
impl LeptonicaDestroy for Box
impl StructuralPartialEq for Box
Auto Trait Implementations§
impl Freeze for Box
impl RefUnwindSafe for Box
impl !Send for Box
impl !Sync for Box
impl Unpin for Box
impl UnwindSafe for Box
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