Struct secp256k1::ffi::PublicKey [−][src]
#[repr(C)]pub struct PublicKey(_);
Library-internal representation of a Secp256k1 public key
Methods
impl PublicKey[src]
impl PublicKeypub fn as_ptr(&self) -> *const c_uchar[src]
pub fn as_ptr(&self) -> *const c_ucharConverts 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_ucharConverts the object to a mutable raw pointer for FFI interfacing
pub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeReturns the length of the object as an array
pub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolReturns whether the object as an array is empty
impl PublicKey[src]
impl PublicKeypub fn new() -> PublicKey[src]
pub fn new() -> PublicKeyCreate a new (zeroed) public key usable for the FFI interface
pub unsafe fn blank() -> PublicKey[src]
pub unsafe fn blank() -> PublicKeyCreate a new (uninitialized) public key usable for the FFI interface
Trait Implementations
impl Copy for PublicKey[src]
impl Copy for PublicKeyimpl PartialEq for PublicKey[src]
impl PartialEq for PublicKeyfn eq(&self, other: &PublicKey) -> bool[src]
fn eq(&self, other: &PublicKey) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for PublicKey[src]
impl Eq for PublicKeyimpl Clone for PublicKey[src]
impl Clone for PublicKeyfn clone(&self) -> PublicKey[src]
fn clone(&self) -> PublicKeyReturns 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 PublicKeytype Output = c_uchar
The returned type after indexing.
fn index(&self, index: usize) -> &c_uchar[src]
fn index(&self, index: usize) -> &c_ucharPerforms the indexing (container[index]) operation.
impl Index<Range<usize>> for PublicKey[src]
impl Index<Range<usize>> for PublicKeytype 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 PublicKeytype 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 PublicKeytype 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 PublicKeytype 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 PublicKeyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for PublicKey[src]
impl Hash for PublicKeyfn 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 PublicKeyCreates a new public key from a FFI public key