Trait pgx_pg_sys::AsPgCStr

source ·
pub trait AsPgCStr {
    // Required method
    fn as_pg_cstr(self) -> *mut c_char;
}
Expand description

A trait for converting a thing into a char * that is allocated by Postgres’ palloc

Required Methods§

source

fn as_pg_cstr(self) -> *mut c_char

Consumes self and converts it into a Postgres-allocated char *

Implementations on Foreign Types§

source§

impl AsPgCStr for &String

source§

impl AsPgCStr for Option<String>

source§

impl AsPgCStr for &Option<String>

source§

impl AsPgCStr for Option<&String>

source§

impl AsPgCStr for String

source§

impl<'a> AsPgCStr for &'a str

source§

impl<'a> AsPgCStr for Option<&'a str>

Implementors§