pub struct PersonalMessage<'a>(pub Cow<'a, [u8]>);
Tuple Fields§
§0: Cow<'a, [u8]>
Implementations§
source§impl PersonalMessage<'_>
impl PersonalMessage<'_>
pub fn signing_digest(&self) -> SigningDigest
Available on crate features
hash
and serde
only.Trait Implementations§
source§impl<'a> Clone for PersonalMessage<'a>
impl<'a> Clone for PersonalMessage<'a>
source§fn clone(&self) -> PersonalMessage<'a>
fn clone(&self) -> PersonalMessage<'a>
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<'a> Debug for PersonalMessage<'a>
impl<'a> Debug for PersonalMessage<'a>
source§impl<'a> PartialEq for PersonalMessage<'a>
impl<'a> PartialEq for PersonalMessage<'a>
impl<'a> Eq for PersonalMessage<'a>
impl<'a> StructuralPartialEq for PersonalMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for PersonalMessage<'a>
impl<'a> RefUnwindSafe for PersonalMessage<'a>
impl<'a> Send for PersonalMessage<'a>
impl<'a> Sync for PersonalMessage<'a>
impl<'a> Unpin for PersonalMessage<'a>
impl<'a> UnwindSafe for PersonalMessage<'a>
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
)