Struct near_primitives_core::hash::CryptoHash [−][src]
Trait Implementations
impl AsMut<[u8]> for CryptoHash
[src]
impl<__AsRefT: ?Sized> AsRef<__AsRefT> for CryptoHash where
Digest: AsRef<__AsRefT>,
[src]
Digest: AsRef<__AsRefT>,
impl BaseDecode for CryptoHash
[src]
impl BorshDeserialize for CryptoHash
[src]
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for CryptoHash
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for CryptoHash
[src]
fn clone(&self) -> CryptoHash
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CryptoHash
[src]
impl Debug for CryptoHash
[src]
impl Default for CryptoHash
[src]
impl<'de> Deserialize<'de> for CryptoHash
[src]
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Display for CryptoHash
[src]
impl Eq for CryptoHash
[src]
impl Hash for CryptoHash
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for CryptoHash
[src]
fn cmp(&self, other: &CryptoHash) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<CryptoHash> for CryptoHash
[src]
fn eq(&self, other: &CryptoHash) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<CryptoHash> for CryptoHash
[src]
fn partial_cmp(&self, other: &CryptoHash) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for CryptoHash
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl TryFrom<&'_ [u8]> for CryptoHash
[src]
type Error = Box<dyn Error>
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<&'_ str> for CryptoHash
[src]
type Error = Box<dyn Error>
The type returned in the event of a conversion error.
fn try_from(s: &str) -> Result<Self, Self::Error>
[src]
impl TryFrom<String> for CryptoHash
[src]
type Error = Box<dyn Error>
The type returned in the event of a conversion error.
fn try_from(s: String) -> Result<Self, Self::Error>
[src]
impl TryFrom<Vec<u8, Global>> for CryptoHash
[src]
Auto Trait Implementations
impl RefUnwindSafe for CryptoHash
impl Send for CryptoHash
impl Sync for CryptoHash
impl Unpin for CryptoHash
impl UnwindSafe for CryptoHash
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BaseEncode for T where
&'a T: for<'a> Into<Vec<u8, Global>>,
[src]
&'a T: for<'a> Into<Vec<u8, Global>>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,