pub struct DebugString {
pub inner: RawString,
}Fields§
§inner: RawStringImplementations§
Source§impl DebugString
impl DebugString
pub fn new(value: CString) -> Self
pub fn push_cstring(&mut self, value: CString) -> Result<(), Box<dyn Error>>
pub fn push_cstr(&mut self, value: &CStr) -> Result<(), Box<dyn Error>>
pub fn get_cstring(&self) -> Option<CString>
pub fn destroy(&mut self) -> Result<(), Box<dyn Error>>
pub fn get_cstr(&self) -> Option<&CStr>
pub fn get_cstring_index(&self, index: usize) -> Option<CString>
pub fn get_cstr_index(&self, index: usize) -> Option<&CStr>
pub fn get_cstring_exact(&self, start: usize, end: usize) -> Option<CString>
pub fn get_cstr_exact(&self, start: usize, end: usize) -> Option<&CStr>
pub fn remove_cstring(&mut self, value: CString) -> Result<(), Box<dyn Error>>
pub fn remove_cstr(&mut self, value: &CStr) -> Result<(), Box<dyn Error>>
pub fn len(&self) -> Option<usize>
pub fn size(&self) -> Option<usize>
pub fn size_from(&self, index: usize) -> Option<usize>
pub fn status(&self) -> Option<usize>
pub fn replace( &mut self, start: usize, end: usize, ) -> Result<(), Box<dyn Error>>
pub fn instance(&self) -> Option<DebugString>
Trait Implementations§
Source§impl Clone for DebugString
impl Clone for DebugString
Source§impl Default for DebugString
impl Default for DebugString
Source§impl From<&CStr> for DebugString
impl From<&CStr> for DebugString
Source§impl From<CString> for DebugString
impl From<CString> for DebugString
Source§impl From<DebugString> for String<CString>
impl From<DebugString> for String<CString>
Source§fn from(value: DebugString) -> Self
fn from(value: DebugString) -> Self
Converts to this type from the input type.
Source§impl From<DebugString> for String<String>
impl From<DebugString> for String<String>
Source§fn from(value: DebugString) -> Self
fn from(value: DebugString) -> Self
Converts to this type from the input type.
Source§impl From<RawString> for DebugString
impl From<RawString> for DebugString
impl Copy for DebugString
impl Send for DebugString
impl Sync for DebugString
Auto Trait Implementations§
impl Freeze for DebugString
impl RefUnwindSafe for DebugString
impl Unpin for DebugString
impl UnwindSafe for DebugString
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