pgrx_pg_sys

Trait 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 &Option<String>

Source§

impl AsPgCStr for &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§