pub struct String {
pub buffer: *mut u8,
pub capacity: u32,
pub len: u32,
pub flags: u8,
}
Fields
buffer: *mut u8
capacity: u32
len: u32
flags: u8
Methods
unsafe fn reserve(&mut self, size: u32) -> u8
unsafe fn length(&mut self) -> u32
unsafe fn copy(&mut self, cstr: *const u8, length: u32) -> *mut String
unsafe fn move_(&mut self, rhs: *mut String)
unsafe fn append(&mut self, str: *const String) -> *mut String
unsafe fn append1(&mut self, cstr: *const u8) -> *mut String
unsafe fn append3(&mut self, c: u8) -> *mut String
unsafe fn append4(&mut self, c: u8) -> *mut String
unsafe fn append5(&mut self, num: i32) -> *mut String
unsafe fn append6(&mut self, num: u32) -> *mut String
unsafe fn append7(&mut self, num: i32) -> *mut String
unsafe fn append8(&mut self, num: u32) -> *mut String
unsafe fn append9(&mut self, num: f32) -> *mut String
unsafe fn append10(&mut self, num: f64) -> *mut String
unsafe fn concat(&mut self, str: *const String) -> *mut String
unsafe fn concat1(&mut self, cstr: *const u8) -> *mut String
unsafe fn concat3(&mut self, c: u8) -> *mut String
unsafe fn concat4(&mut self, c: u8) -> *mut String
unsafe fn concat5(&mut self, num: i32) -> *mut String
unsafe fn concat6(&mut self, num: u32) -> *mut String
unsafe fn concat7(&mut self, num: i32) -> *mut String
unsafe fn concat8(&mut self, num: u32) -> *mut String
unsafe fn concat9(&mut self, num: f32) -> *mut String
unsafe fn concat10(&mut self, num: f64) -> *mut String
unsafe fn compareTo(&mut self, s: *const String) -> i32
unsafe fn equals(&mut self, s: *const String) -> u8
unsafe fn equals1(&mut self, cstr: *const u8) -> u8
unsafe fn startsWith(&mut self, prefix: *const String) -> u8
unsafe fn startsWith1(&mut self, prefix: *const String, offset: u32) -> u8
unsafe fn endsWith(&mut self, suffix: *const String) -> u8
unsafe fn charAt(&mut self, index: u32) -> u8
unsafe fn setCharAt(&mut self, index: u32, c: u8)
unsafe fn getBytes(&mut self, buf: *mut u8, bufsize: u32, index: u32)
unsafe fn toCharArray(&mut self, buf: *mut u8, bufsize: u32, index: u32)
unsafe fn c_str(&mut self) -> *const u8
unsafe fn indexOf(&mut self, ch: u8) -> i32
unsafe fn indexOf1(&mut self, ch: u8, fromIndex: u32) -> i32
unsafe fn indexOf2(&mut self, str: *const String) -> i32
unsafe fn indexOf3(&mut self, str: *const String, fromIndex: u32) -> i32
unsafe fn lastIndexOf(&mut self, ch: u8) -> i32
unsafe fn lastIndexOf1(&mut self, ch: u8, fromIndex: u32) -> i32
unsafe fn lastIndexOf2(&mut self, str: *const String) -> i32
unsafe fn lastIndexOf3(&mut self, str: *const String, fromIndex: u32) -> i32
unsafe fn substring(&mut self, beginIndex: u32) -> String
unsafe fn substring1(&mut self, beginIndex: u32, endIndex: u32) -> String
unsafe fn replace(&mut self, find: u8, replace: u8) -> *mut String
unsafe fn replace1(&mut self, find: *const String, replace: *const String) -> *mut String
unsafe fn remove(&mut self, index: u32) -> *mut String
unsafe fn remove1(&mut self, index: u32, count: u32) -> *mut String
unsafe fn trim(&mut self) -> *mut String
unsafe fn toInt(&mut self) -> i32
unsafe fn toFloat(&mut self) -> f32
unsafe fn init(&mut self)
unsafe fn changeBuffer(&mut self, maxStrLen: u32) -> u8
unsafe fn append11(&mut self, cstr: *const u8, length: u32) -> *mut String
Trait Implementations
Formats the value using the given formatter.