pub unsafe trait CElement: CData { }
Expand description

A CData representing a single value rater than an entire buffer of a range of values.

Safety

Considerations for implementers

Callers must be able to rely on all pointers being valid, i.e. the “range” is not empty.

Since the indicator provided by implementation is used to indicate the length of the value in the buffer, care must be taken to prevent out of bounds access in case the implementation also is used as an output parameter, and contains truncated values (i.e. the indicator is longer than the buffer and the value within).

Implementations on Foreign Types§

source§

impl CElement for Timestamp

source§

impl CElement for f64

source§

impl CElement for i8

source§

impl CElement for Date

source§

impl CElement for u8

source§

impl CElement for Box<dyn InputParameter>

source§

impl CElement for CString

source§

impl CElement for i16

source§

impl CElement for u64

source§

impl CElement for Numeric

source§

impl CElement for i32

source§

impl CElement for u16

source§

impl CElement for CStr

source§

impl CElement for f32

source§

impl CElement for u32

source§

impl CElement for i64

source§

impl CElement for Time

Implementors§

source§

impl CElement for Bit

source§

impl<K: VarKind> CElement for VarCell<&[K::Element], K>

source§

impl<K: VarKind> CElement for VarCell<&mut [K::Element], K>

source§

impl<K: VarKind> CElement for VarCell<Box<[K::Element]>, K>

source§

impl<T> CElement for Nullable<T>where T: Pod,

source§

impl<T> CElement for WithDataType<T>where T: CElement,

source§

impl<const LENGTH: usize, K: VarKind> CElement for VarCell<[K::Element; LENGTH], K>