Struct mariadb_sys::String

source ·
#[repr(C)]
pub struct String { pub _base: Charset, pub _base_1: Binary_string, }

Fields§

§_base: Charset§_base_1: Binary_string

Implementations§

source§

impl String

source

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

source

pub unsafe fn set_int( &mut self, num: longlong, unsigned_flag: bool, cs: *const charset_info_st ) -> bool

source

pub unsafe fn set_real( &mut self, num: f64, decimals: uint, cs: *const charset_info_st ) -> bool

source

pub unsafe fn needs_conversion( arg_length: usize, cs_from: *const charset_info_st, cs_to: *const charset_info_st, offset: *mut uint32 ) -> bool

source

pub unsafe fn needs_conversion_on_storage( arg_length: usize, cs_from: *const charset_info_st, cs_to: *const charset_info_st ) -> bool

source

pub unsafe fn copy_aligned( &mut self, s: *const c_char, arg_length: usize, offset: usize, cs: *const charset_info_st ) -> bool

source

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

source

pub unsafe fn copy( &mut self, s: *const c_char, arg_length: usize, csfrom: *const charset_info_st, csto: *const charset_info_st, errors: *mut uint ) -> bool

source

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

source

pub unsafe fn append_parenthesized(&mut self, nr: c_long, radix: c_int) -> bool

source

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

source

pub unsafe fn strip_sp(&mut self)

source

pub unsafe fn print(&self, to: *mut String)

source

pub unsafe fn print_with_conversion( &self, to: *mut String, cs: *const charset_info_st )

source

pub unsafe fn append_for_single_quote( &mut self, st: *const c_char, len: usize ) -> bool

Trait Implementations§

source§

impl Debug for String

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for String

§

impl !Send for String

§

impl !Sync for String

§

impl Unpin for String

§

impl UnwindSafe for String

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.