#[repr(C, packed(1))]pub struct HashResult {Show 13 fields
pub result: i32,
pub hash_format: i32,
pub header_dimensions_image_x: i32,
pub header_dimensions_image_y: i32,
pub header_dimensions_image_w: i32,
pub header_dimensions_image_h: i32,
pub hash: [u8; 1232],
pub reserved0: i32,
pub reserved1: i32,
pub reserved2: i32,
pub reserved3: i32,
pub reserved4: i32,
pub reserved5: i32,
}Expand description
Result structure returned by border detection hash functions.
When a border is found, the hash with the border removed will be in the second instance of the results array.
§Result Values
< 0: An error occurred (see error codes)1: No border was found2: A border was found
Fields§
§result: i32Error code if less than 0, otherwise indicates border detection result.
hash_format: i32Hash format used for this result.
header_dimensions_image_x: i32Left position (X) within the provided image.
header_dimensions_image_y: i32Top position (Y) within the provided image.
header_dimensions_image_w: i32Width within the provided image.
header_dimensions_image_h: i32Height within the provided image.
hash: [u8; 1232]The computed hash in the requested format.
reserved0: i32Reserved for future use.
reserved1: i32Reserved for future use.
reserved2: i32Reserved for future use.
reserved3: i32Reserved for future use.
reserved4: i32Reserved for future use.
reserved5: i32Reserved for future use.
Trait Implementations§
Source§impl Clone for HashResult
impl Clone for HashResult
Source§fn clone(&self) -> HashResult
fn clone(&self) -> HashResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HashResult
impl Debug for HashResult
Source§impl Default for HashResult
impl Default for HashResult
impl Copy for HashResult
Auto Trait Implementations§
impl Freeze for HashResult
impl RefUnwindSafe for HashResult
impl Send for HashResult
impl Sync for HashResult
impl Unpin for HashResult
impl UnwindSafe for HashResult
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