Struct secp256k1::SerializedSignature [−][src]
A DER serialized Signature
Implementations
impl SerializedSignature
[src]
pub fn capacity(&self) -> usize
[src]
Get the capacity of the underlying data buffer.
pub fn len(&self) -> usize
[src]
Get the len of the used data.
pub fn to_signature(&self) -> Result<Signature, Error>
[src]
Convert the serialized signature into the Signature struct. (This DER deserializes it)
pub fn from_signature(sig: &Signature) -> SerializedSignature
[src]
Create a SerializedSignature from a Signature. (this DER serializes it)
pub fn is_empty(&self) -> bool
[src]
Check if the space is zero.
Trait Implementations
impl AsRef<[u8]> for SerializedSignature
[src]
impl Clone for SerializedSignature
[src]
fn clone(&self) -> SerializedSignature
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SerializedSignature
[src]
impl Default for SerializedSignature
[src]
fn default() -> SerializedSignature
[src]
impl Deref for SerializedSignature
[src]
impl Eq for SerializedSignature
[src]
impl PartialEq<SerializedSignature> for SerializedSignature
[src]
Auto Trait Implementations
impl RefUnwindSafe for SerializedSignature
impl Send for SerializedSignature
impl Sync for SerializedSignature
impl Unpin for SerializedSignature
impl UnwindSafe for SerializedSignature
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,