Struct skia_bindings::SkString

source ·
#[repr(C)]
pub struct SkString { pub fRec: sk_sp<SkString_Rec>, }

Fields§

§fRec: sk_sp<SkString_Rec>

Implementations§

source§

impl SkString

source

pub unsafe fn equals(&self, arg1: *const SkString) -> bool

source

pub unsafe fn equals1(&self, text: *const c_char) -> bool

source

pub unsafe fn equals2(&self, text: *const c_char, len: usize) -> bool

source

pub unsafe fn data(&mut self) -> *mut c_char

source

pub unsafe fn reset(&mut self)

source

pub unsafe fn resize(&mut self, len: usize)

source

pub unsafe fn set(&mut self, text: *const c_char)

source

pub unsafe fn set1(&mut self, text: *const c_char, len: usize)

source

pub unsafe fn insert(&mut self, offset: usize, text: *const c_char)

source

pub unsafe fn insert1(&mut self, offset: usize, text: *const c_char, len: usize)

source

pub unsafe fn insertUnichar(&mut self, offset: usize, arg1: SkUnichar)

source

pub unsafe fn insertS32(&mut self, offset: usize, value: i32)

source

pub unsafe fn insertS64(&mut self, offset: usize, value: i64, minDigits: c_int)

source

pub unsafe fn insertU32(&mut self, offset: usize, value: u32)

source

pub unsafe fn insertU64(&mut self, offset: usize, value: u64, minDigits: c_int)

source

pub unsafe fn insertHex(&mut self, offset: usize, value: u32, minDigits: c_int)

source

pub unsafe fn insertScalar(&mut self, offset: usize, arg1: SkScalar)

source

pub unsafe fn printVAList(&mut self, format: *const c_char, arg1: va_list)

source

pub unsafe fn appendVAList(&mut self, format: *const c_char, arg1: va_list)

source

pub unsafe fn prependVAList(&mut self, format: *const c_char, arg1: va_list)

source

pub unsafe fn remove(&mut self, offset: usize, length: usize)

source

pub unsafe fn swap(&mut self, other: *mut SkString)

source

pub unsafe fn new() -> Self

source

pub unsafe fn new1(len: usize) -> Self

source

pub unsafe fn new2(text: *const c_char) -> Self

source

pub unsafe fn new3(text: *const c_char, len: usize) -> Self

source

pub unsafe fn new4(arg1: *const SkString) -> Self

source

pub unsafe fn new5(arg1: *mut SkString) -> Self

source

pub unsafe fn new6(arg1: *const std_string) -> Self

source

pub unsafe fn new7(arg1: std_string_view) -> Self

source

pub unsafe fn destruct(&mut self)

Trait Implementations§

source§

impl Debug for SkString

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.