pub enum FingerprintPrecision {
SizeOnly = 0,
Metadata = 1,
ByteLevel = 2,
MetaLevel = 3,
Semantic = 4,
}Expand description
フィンガープリントが保持する情報の精度レベル。
上位ほど豊かな情報を持つ。Ord はこの序列に基づく。
注意: matches_within_location() の比較優先順序とは異なる。
matches_within_location() は信頼性順(byte_digest > content_digest > meta_digest)で比較するが、
この enum は情報量順(Semantic > MetaLevel > ByteLevel)で序列化する。
詳細はモジュールドキュメントを参照。
Variants§
SizeOnly = 0
size のみ。同一サイズ・異内容のfalse positive リスクあり。
Metadata = 1
size + mtime。ストレージのタイムスタンプ精度に依存。
ByteLevel = 2
byte_digest (DJB2/sha256)。バイト列完全一致。
MetaLevel = 3
meta_digest (PNG tEXt, EXIF等)。埋め込みメタデータの同一性。
Semantic = 4
content_digest (PNG IHDR+IDAT 等)。ピクセルデータの意味的同一性。
Trait Implementations§
Source§impl Clone for FingerprintPrecision
impl Clone for FingerprintPrecision
Source§fn clone(&self) -> FingerprintPrecision
fn clone(&self) -> FingerprintPrecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FingerprintPrecision
impl Debug for FingerprintPrecision
Source§impl Display for FingerprintPrecision
impl Display for FingerprintPrecision
Source§impl Ord for FingerprintPrecision
impl Ord for FingerprintPrecision
Source§fn cmp(&self, other: &FingerprintPrecision) -> Ordering
fn cmp(&self, other: &FingerprintPrecision) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FingerprintPrecision
impl PartialEq for FingerprintPrecision
Source§fn eq(&self, other: &FingerprintPrecision) -> bool
fn eq(&self, other: &FingerprintPrecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FingerprintPrecision
impl PartialOrd for FingerprintPrecision
impl Copy for FingerprintPrecision
impl Eq for FingerprintPrecision
impl StructuralPartialEq for FingerprintPrecision
Auto Trait Implementations§
impl Freeze for FingerprintPrecision
impl RefUnwindSafe for FingerprintPrecision
impl Send for FingerprintPrecision
impl Sync for FingerprintPrecision
impl Unpin for FingerprintPrecision
impl UnsafeUnpin for FingerprintPrecision
impl UnwindSafe for FingerprintPrecision
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