[−][src]Struct stellar_base::signature::HashX
Hash(x)
Implementations
impl HashX
[src]
pub fn new(hashx: Vec<u8>) -> Result<HashX>
[src]
Creates a HashX
from a vector of bytes.
hashx
must be exactly 32 bytes.
pub fn new_from_preimage(preimage: &[u8]) -> HashX
[src]
Creates a HashX
from the preimage
.
pub fn as_bytes(&self) -> &[u8]
[src]
Returns the hashx as bytes.
Trait Implementations
impl Clone for HashX
[src]
impl Debug for HashX
[src]
impl Eq for HashX
[src]
impl PartialEq<HashX> for HashX
[src]
impl StructuralEq for HashX
[src]
impl StructuralPartialEq for HashX
[src]
Auto Trait Implementations
impl RefUnwindSafe for HashX
impl Send for HashX
impl Sync for HashX
impl Unpin for HashX
impl UnwindSafe for HashX
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, 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>,