pub struct Fingerprint(Vec<u8>);
Expand description
A key fingerprint
Tuple Fields§
§0: Vec<u8>
Implementations§
source§impl Fingerprint
impl Fingerprint
sourcepub fn new(v: Vec<u8>) -> Fingerprint
pub fn new(v: Vec<u8>) -> Fingerprint
Creates new 160-bit (20 bytes) fingerprint.
sourcepub fn hex(&self) -> String
pub fn hex(&self) -> String
Make a hex string from the fingerprint.
Use std::fmt::Display or ToString::to_string to get a human-readable formatted string.
Trait Implementations§
source§impl Clone for Fingerprint
impl Clone for Fingerprint
source§fn clone(&self) -> Fingerprint
fn clone(&self) -> Fingerprint
Returns a copy 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 Fingerprint
impl Debug for Fingerprint
source§impl<'de> Deserialize<'de> for Fingerprint
impl<'de> Deserialize<'de> for Fingerprint
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Fingerprint
impl Display for Fingerprint
Make a human-readable fingerprint.
source§impl From<Fingerprint> for Fingerprint
impl From<Fingerprint> for Fingerprint
source§fn from(fingerprint: Fingerprint) -> Fingerprint
fn from(fingerprint: Fingerprint) -> Fingerprint
Converts to this type from the input type.
source§impl FromStr for Fingerprint
impl FromStr for Fingerprint
Parse a human-readable or otherwise formatted fingerprint.
source§impl Hash for Fingerprint
impl Hash for Fingerprint
source§impl PartialEq for Fingerprint
impl PartialEq for Fingerprint
source§impl Serialize for Fingerprint
impl Serialize for Fingerprint
impl Eq for Fingerprint
impl StructuralPartialEq for Fingerprint
Auto Trait Implementations§
impl Freeze for Fingerprint
impl RefUnwindSafe for Fingerprint
impl Send for Fingerprint
impl Sync for Fingerprint
impl Unpin for Fingerprint
impl UnwindSafe for Fingerprint
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.