Struct secp256k1::ffi::PublicKey [−][src]
#[repr(C)]pub struct PublicKey(_);
Library-internal representation of a Secp256k1 public key
Methods
impl PublicKey
[src]
impl PublicKey
pub fn as_ptr(&self) -> *const c_uchar
[src]
pub fn as_ptr(&self) -> *const c_uchar
Converts the object to a raw pointer for FFI interfacing
pub fn as_mut_ptr(&mut self) -> *mut c_uchar
[src]
pub fn as_mut_ptr(&mut self) -> *mut c_uchar
Converts the object to a mutable raw pointer for FFI interfacing
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns the length of the object as an array
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns whether the object as an array is empty
impl PublicKey
[src]
impl PublicKey
pub fn new() -> PublicKey
[src]
pub fn new() -> PublicKey
Create a new (zeroed) public key usable for the FFI interface
pub unsafe fn blank() -> PublicKey
[src]
pub unsafe fn blank() -> PublicKey
Create a new (uninitialized) public key usable for the FFI interface
Trait Implementations
impl Copy for PublicKey
[src]
impl Copy for PublicKey
impl PartialEq for PublicKey
[src]
impl PartialEq for PublicKey
fn eq(&self, other: &PublicKey) -> bool
[src]
fn eq(&self, other: &PublicKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for PublicKey
[src]
impl Eq for PublicKey
impl Clone for PublicKey
[src]
impl Clone for PublicKey
fn clone(&self) -> PublicKey
[src]
fn clone(&self) -> PublicKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Index<usize> for PublicKey
[src]
impl Index<usize> for PublicKey
type Output = c_uchar
The returned type after indexing.
fn index(&self, index: usize) -> &c_uchar
[src]
fn index(&self, index: usize) -> &c_uchar
Performs the indexing (container[index]
) operation.
impl Index<Range<usize>> for PublicKey
[src]
impl Index<Range<usize>> for PublicKey
type Output = [c_uchar]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[c_uchar]
[src]
fn index(&self, index: Range<usize>) -> &[c_uchar]
Performs the indexing (container[index]
) operation.
impl Index<RangeTo<usize>> for PublicKey
[src]
impl Index<RangeTo<usize>> for PublicKey
type Output = [c_uchar]
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &[c_uchar]
[src]
fn index(&self, index: RangeTo<usize>) -> &[c_uchar]
Performs the indexing (container[index]
) operation.
impl Index<RangeFrom<usize>> for PublicKey
[src]
impl Index<RangeFrom<usize>> for PublicKey
type Output = [c_uchar]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[c_uchar]
[src]
fn index(&self, index: RangeFrom<usize>) -> &[c_uchar]
Performs the indexing (container[index]
) operation.
impl Index<RangeFull> for PublicKey
[src]
impl Index<RangeFull> for PublicKey
type Output = [c_uchar]
The returned type after indexing.
fn index(&self, _: RangeFull) -> &[c_uchar]
[src]
fn index(&self, _: RangeFull) -> &[c_uchar]
Performs the indexing (container[index]
) operation.
impl Debug for PublicKey
[src]
impl Debug for PublicKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for PublicKey
[src]
impl Hash for PublicKey
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<PublicKey> for PublicKey
[src]
impl From<PublicKey> for PublicKey
Creates a new public key from a FFI public key