pub struct Signature<'a>(pub &'a [u8]);Expand description
A signature checked by check_sig.
This is a thin, zero-copy newtype around a byte slice. Its only purpose is to give the
signature argument a distinct type from the message argument (see Message), so a
caller who swaps the two is caught at compile time rather than silently getting a wrong
answer at runtime.
§Derived Traits
Copy: the newtype only borrows a slice, so copying is trivialPartialEq, Eq: enable comparisonsDebug, Clone: standard traits for development and consistency
Tuple Fields§
§0: &'a [u8]Trait Implementations§
impl<'a> Copy for Signature<'a>
impl<'a> Eq for Signature<'a>
impl<'a> StructuralPartialEq for Signature<'a>
Auto Trait Implementations§
impl<'a> Freeze for Signature<'a>
impl<'a> RefUnwindSafe for Signature<'a>
impl<'a> Send for Signature<'a>
impl<'a> Sync for Signature<'a>
impl<'a> Unpin for Signature<'a>
impl<'a> UnsafeUnpin for Signature<'a>
impl<'a> UnwindSafe for Signature<'a>
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§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