pub struct Thumbnail {
pub jpeg: Vec<u8>,
pub width: u32,
pub height: u32,
pub picture_hash: Option<u64>,
}Expand description
A thumbnail that a Thumbnailer made: a JPEG, its size in pixels, and the picture
hash of what it shows, if the thumbnailer makes one.
Fields§
§jpeg: Vec<u8>The JPEG’s bytes.
width: u32Its width.
height: u32Its height.
picture_hash: Option<u64>The picture hash of what it shows, which copies of the picture share, resized or
saved again, but for at most nibkeep_std::MOST_PICTURE_BITS_APART bits, as a
difference hash of 64 bits does: by which the engine links copies of photos.
Trait Implementations§
impl Eq for Thumbnail
impl StructuralPartialEq for Thumbnail
Auto Trait Implementations§
impl Forget for Thumbnail
impl Freeze for Thumbnail
impl Move for Thumbnail
impl RefUnwindSafe for Thumbnail
impl Send for Thumbnail
impl Sync for Thumbnail
impl Unpin for Thumbnail
impl UnsafeUnpin for Thumbnail
impl UnwindSafe for Thumbnail
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.