Struct udf_sys::UDF_ARGS

source ·
#[repr(C)]
pub struct UDF_ARGS { pub arg_count: c_uint, pub arg_type: *mut Item_result, pub args: *const *const c_char, pub lengths: *const c_ulong, pub maybe_null: *const c_char, pub attributes: *const *const c_char, pub attribute_lengths: *const c_ulong, pub extension: *const c_void, }
Expand description

Representation of a sequence of SQL arguments

Fields

arg_count: c_uint

Number of arguments present

arg_type: *mut Item_result

Buffer of item_result pointers that indicate argument type

Remains mutable because it can be set in xxx_init

args: *const *const c_char

Buffer of pointers to the arguments. Arguments may be of any type (specified in arg_type).

lengths: *const c_ulong

Buffer of lengths for string arguments

maybe_null: *const c_char

Indicates whether the argument may be null or not

attributes: *const *const c_char

Buffer of string pointers that hold variable names, for use with error messages

attribute_lengths: *const c_ulong

Buffer of lengths of attributes

extension: *const c_void

Extension is currently unused

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.