[−][src]Trait pgx::inoutfuncs::PgVarlenaInOutFuncs
#[derive(Copy, Clone, PostgresType)]
types need to implement this trait to provide the text
input/output functions for that type
Required methods
pub fn input(input: &CStr) -> PgVarlena<Self> where
Self: Copy + Sized,
[src]
Self: Copy + Sized,
Given a string representation of Self
, parse it into a PgVarlena<Self>
.
It is expected that malformed input will raise an error!()
or panic!()
pub fn output(&self, buffer: &mut StringInfo)
[src]
Convert Self
into text by writing to the supplied StringInfo
buffer