#[repr(C)]pub struct _cef_string_wide_t {
pub str_: *mut wchar_t,
pub length: usize,
pub dtor: Option<unsafe extern "C" fn(str_: *mut wchar_t)>,
}Expand description
CEF string type definitions. Whomever allocates |str| is responsible for providing an appropriate |dtor| implementation that will free the string in the same memory space. When reusing an existing string structure make sure to call |dtor| for the old value before assigning new |str| and |dtor| values. Static strings will have a NULL |dtor| value. Using the below functions if you want this managed for you.
Fields§
§str_: *mut wchar_t§length: usize§dtor: Option<unsafe extern "C" fn(str_: *mut wchar_t)>Trait Implementations§
Source§impl Clone for _cef_string_wide_t
impl Clone for _cef_string_wide_t
Source§fn clone(&self) -> _cef_string_wide_t
fn clone(&self) -> _cef_string_wide_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for _cef_string_wide_t
impl Debug for _cef_string_wide_t
impl Copy for _cef_string_wide_t
Auto Trait Implementations§
impl Freeze for _cef_string_wide_t
impl RefUnwindSafe for _cef_string_wide_t
impl !Send for _cef_string_wide_t
impl !Sync for _cef_string_wide_t
impl Unpin for _cef_string_wide_t
impl UnwindSafe for _cef_string_wide_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more