#[repr(C)]
pub struct Binary_string { pub Ptr: *mut c_char, pub str_length: uint32, pub Alloced_length: uint32, pub extra_alloc: uint32, pub alloced: bool, pub thread_specific: bool, }
Expand description

Storage for strings with both length and allocated length. Automatically grows on demand.

Fields§

§Ptr: *mut c_char§str_length: uint32§Alloced_length: uint32§extra_alloc: uint32§alloced: bool§thread_specific: bool

Implementations§

source§

impl Binary_string

source

pub unsafe fn strstr( &self, search: *const Binary_string, offset: uint32 ) -> c_int

source

pub unsafe fn strstr1( &self, search: *const c_char, search_length: uint32, offset: uint32 ) -> c_int

source

pub unsafe fn strrstr( &self, search: *const Binary_string, offset: uint32 ) -> c_int

source

pub unsafe fn qs_append(&mut self, str_: *const c_char, len: usize)

source

pub unsafe fn qs_append_hex(&mut self, str_: *const c_char, len: uint32)

source

pub unsafe fn qs_append_hex_uint32(&mut self, num: uint32)

source

pub unsafe fn qs_append1(&mut self, d: f64)

source

pub unsafe fn qs_append2(&mut self, d: *const f64)

source

pub unsafe fn qs_append3(&mut self, i: c_int)

source

pub unsafe fn qs_append4(&mut self, i: ulonglong)

source

pub unsafe fn set_hex(&mut self, num: ulonglong) -> bool

source

pub unsafe fn set_hex1(&mut self, str_: *const c_char, len: uint32) -> bool

source

pub unsafe fn set_fcvt(&mut self, num: f64, decimals: uint) -> bool

source

pub unsafe fn copy(&mut self) -> bool

source

pub unsafe fn copy1(&mut self, s: *const Binary_string) -> bool

source

pub unsafe fn copy2(&mut self, s: *const c_char, arg_length: usize) -> bool

source

pub unsafe fn copy_or_move( &mut self, s: *const c_char, arg_length: usize ) -> bool

source

pub unsafe fn copy_printable_hhhh( &mut self, to_cs: *const charset_info_st, from_cs: *const charset_info_st, from: *const c_char, from_length: usize ) -> bool

source

pub unsafe fn append_ulonglong(&mut self, val: ulonglong) -> bool

source

pub unsafe fn append_longlong(&mut self, val: longlong) -> bool

source

pub unsafe fn append(&mut self, file: *mut IO_CACHE, arg_length: uint32) -> bool

source

pub unsafe fn real_alloc(&mut self, arg_length: usize) -> bool

source

pub unsafe fn realloc_raw(&mut self, arg_length: usize) -> bool

source

pub unsafe fn shrink(&mut self, arg_length: usize)

source

pub unsafe fn fill(&mut self, max_length: usize, fill: c_char) -> bool

source

pub unsafe fn replace( &mut self, offset: uint32, arg_length: uint32, to: *const c_char, length: uint32 ) -> bool

source

pub unsafe fn reserve(&mut self, space_needed: usize, grow_by: usize) -> c_int

Trait Implementations§

source§

impl Debug for Binary_string

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.