Trait secp256k1_sys::CPtr[][src]

pub trait CPtr {
    type Target;
    fn as_c_ptr(&self) -> *const Self::Target;
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[src]

Loading content...

Required methods

fn as_c_ptr(&self) -> *const Self::Target[src]

fn as_mut_c_ptr(&mut self) -> *mut Self::Target[src]

Loading content...

Implementations on Foreign Types

impl<T> CPtr for [T][src]

type Target = T

Loading content...

Implementors

impl CPtr for RecoverableSignature[src]

type Target = c_uchar

impl CPtr for PublicKey[src]

type Target = c_uchar

impl CPtr for Signature[src]

type Target = c_uchar

Loading content...