Type Definition odbc_api::parameter::VarCharBox [−][src]
type VarCharBox = VarChar<Box<[u8]>>;
Paramater type for owned, variable sized character 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
impl VarCharBox
[src]
pub fn null() -> Self
[src]
Constucts a ‘missing’ value.
pub fn from_string(val: String) -> Self
[src]
Create an owned parameter containing the character data from the passed string.
pub fn from_vec(val: Vec<u8>) -> Self
[src]
Create a VarChar box from a Vec
.