[−][src]Struct holochain_persistence_api::hash::HashString
Methods
impl HashString
[src]
pub fn new() -> HashString
[src]
pub fn encode_from_bytes(bytes: &[u8], hash_type: Hash) -> HashString
[src]
convert bytes to a b58 hashed string
pub fn encode_from_str(s: &str, hash_type: Hash) -> HashString
[src]
convert a string as bytes to a b58 hashed string
pub fn encode_from_json_string(
json_string: JsonString,
hash_type: Hash
) -> HashString
[src]
json_string: JsonString,
hash_type: Hash
) -> HashString
magic all in one fn, take a JsonString + hash type and get a hashed b58 string back
Trait Implementations
impl<'a> AsRef<[u8]> for HashString
[src]
impl<'a> From<&'a HashString> for JsonString
[src]
fn from(v: &HashString) -> JsonString
[src]
impl From<HashString> for JsonString
[src]
fn from(v: HashString) -> JsonString
[src]
impl From<String> for HashString
[src]
fn from(s: String) -> HashString
[src]
impl From<HashString> for String
[src]
fn from(h: HashString) -> String
[src]
impl<'a> From<&'a str> for HashString
[src]
fn from(s: &str) -> HashString
[src]
impl<'a, '_> From<&'_ Vec<u8>> for HashString
[src]
fn from(v: &Vec<u8>) -> HashString
[src]
impl From<Vec<u8>> for HashString
[src]
fn from(v: Vec<u8>) -> HashString
[src]
impl Clone for HashString
[src]
fn clone(&self) -> HashString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for HashString
[src]
fn default() -> HashString
[src]
impl Eq for HashString
[src]
impl Ord for HashString
[src]
fn cmp(&self, other: &HashString) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<HashString> for HashString
[src]
fn eq(&self, other: &HashString) -> bool
[src]
fn ne(&self, other: &HashString) -> bool
[src]
impl PartialOrd<HashString> for HashString
[src]
fn partial_cmp(&self, other: &HashString) -> Option<Ordering>
[src]
fn lt(&self, other: &HashString) -> bool
[src]
fn le(&self, other: &HashString) -> bool
[src]
fn gt(&self, other: &HashString) -> bool
[src]
fn ge(&self, other: &HashString) -> bool
[src]
impl Display for HashString
[src]
impl Debug for HashString
[src]
impl<'a> TryFrom<&'a JsonString> for HashString
[src]
type Error = JsonError
The type returned in the event of a conversion error.
fn try_from(json_string: &JsonString) -> Result<Self, Self::Error>
[src]
impl TryFrom<JsonString> for HashString
[src]
type Error = JsonError
The type returned in the event of a conversion error.
fn try_from(json_string: JsonString) -> Result<Self, Self::Error>
[src]
impl Hash for HashString
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl TryInto<Vec<u8>> for HashString
[src]
type Error = FromBase58Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Vec<u8>, Self::Error>
[src]
impl<'a> TryInto<Vec<u8>> for &'a HashString
[src]
type Error = FromBase58Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Vec<u8>, Self::Error>
[src]
impl Serialize for HashString
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for HashString
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for HashString
impl Sync for HashString
impl Unpin for HashString
impl UnwindSafe for HashString
impl RefUnwindSafe for HashString
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,