pub struct String {
pub data: *const u8,
}
Fields§
§data: *const u8
Implementations§
Source§impl String
impl String
pub fn create(_rp: *mut Page, data: *const u8, length: usize) -> String
pub fn new(_rp: *mut Page, string: &str) -> String
pub fn copy(_rp: *mut Page, other: String) -> String
pub fn from_c_string(_rp: *mut Page, c_string: *const c_char) -> String
pub fn from_character(_rp: *mut Page, character: char) -> String
pub fn to_c_string(&self, _rp: *mut Page) -> *const c_char
pub fn from_string_slice(_rp: *mut Page, s: &str) -> String
pub fn append_character(&self, _rp: *mut Page, c: char) -> String
pub fn get_length(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for String
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> 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