Type Definition odbc_api::parameter::VarBinaryBox

source ·
pub type VarBinaryBox = VarBinary<Box<[u8]>>;
Expand description

Parameter type for owned, variable sized binary data.

We use Box<[u8]> rather than Vec<u8> as a buffer type since the indicator pointer already has the role of telling us how many bytes in the buffer are part of the payload.

Implementations§

Constructs a ‘missing’ value.

Examples found in repository?
src/into_parameter.rs (line 103)
100
101
102
103
104
105
    fn into_parameter(self) -> Self::Parameter {
        match self {
            Some(str) => str.into_parameter(),
            None => VarBinaryBox::null(),
        }
    }

Create an instance from a Vec.

Examples found in repository?
src/into_parameter.rs (line 93)
92
93
94
    fn into_parameter(self) -> Self::Parameter {
        VarBinaryBox::from_vec(self)
    }

Trait Implementations§