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