Trait secp256k1_zkp::secp256k1_sys::CPtr [−]
pub trait CPtr { type Target; pub fn as_c_ptr(&self) -> *const Self::Target; pub fn as_mut_c_ptr(&mut self) -> *mut Self::Target; }
A trait for producing pointers that will always be valid in C. (assuming NULL pointer is a valid no-op) Rust doesn’t promise what pointers does it give to ZST (https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts) In case the type is empty this trait will give a NULL pointer, which should be handled in C.
Associated Types
type Target
Required methods
Loading content...Implementations on Foreign Types
impl CPtr for PedersenCommitment
[src]
impl CPtr for PedersenCommitment
[src]type Target = u8
pub fn as_c_ptr(&self) -> *const <PedersenCommitment as CPtr>::Target
[src]
pub fn as_mut_c_ptr(&mut self) -> *mut <PedersenCommitment as CPtr>::Target
[src]
impl CPtr for EcdsaAdaptorSignature
[src]
impl CPtr for EcdsaAdaptorSignature
[src]type Target = u8
pub fn as_c_ptr(&self) -> *const <EcdsaAdaptorSignature as CPtr>::Target
[src]
pub fn as_mut_c_ptr(&mut self) -> *mut <EcdsaAdaptorSignature as CPtr>::Target
[src]
Implementors
impl CPtr for secp256k1_zkp::recovery::RecoverableSignature
[src]
impl CPtr for secp256k1_zkp::recovery::RecoverableSignature
[src]type Target = RecoverableSignature
pub fn as_c_ptr(&self) -> *const <RecoverableSignature as CPtr>::Target
[src]
pub fn as_mut_c_ptr(&mut self) -> *mut <RecoverableSignature as CPtr>::Target
[src]
impl CPtr for secp256k1_zkp::EcdsaAdaptorSignature
[src]
impl CPtr for secp256k1_zkp::EcdsaAdaptorSignature
[src]type Target = EcdsaAdaptorSignature
fn as_c_ptr(&self) -> *const Self::Target
[src]
fn as_mut_c_ptr(&mut self) -> *mut Self::Target
[src]
impl CPtr for secp256k1_zkp::secp256k1_sys::recovery::RecoverableSignature
impl CPtr for secp256k1_zkp::secp256k1_sys::recovery::RecoverableSignature
type Target = u8
pub fn as_c_ptr(&self) -> *const <RecoverableSignature as CPtr>::Target
pub fn as_mut_c_ptr(&mut self) -> *mut <RecoverableSignature as CPtr>::Target
impl CPtr for XOnlyPublicKey
impl CPtr for XOnlyPublicKey