Struct dexalt_lib::clist::raw::DebugCList
source · pub struct DebugCList { /* private fields */ }Expand description
Implementations§
source§impl DebugCList
impl DebugCList
sourcepub fn append(&mut self, data: CString)
pub fn append(&mut self, data: CString)
Append the CList with the given data.
§Example
let mut list = DebugCList::new(10);
list.append(ffi::CString::new("Hello").unwrap());sourcepub fn extend(&mut self, list: &mut RawCList)
pub fn extend(&mut self, list: &mut RawCList)
Extend the CList with the given data.
§Example
let mut list = DebugCList::new(10);
list.extend(&mut list);sourcepub fn push(&mut self, data: Data)
pub fn push(&mut self, data: Data)
Push the CList with the given data.
§Example
let mut list = DebugCList::new(10);
list.push(Data::Int(10));sourcepub fn remove(&mut self, data: CString)
pub fn remove(&mut self, data: CString)
Remove the CList with the given data.
§Example
let mut list = DebugCList::new(10);
list.remove(ffi::CString::new("Hello").unwrap());sourcepub fn to_array(&mut self, array: &mut Vec<CString>)
pub fn to_array(&mut self, array: &mut Vec<CString>)
Convert the CList to an array.
§Example
let mut list = DebugCList::new(10);
let mut array = Vec::new();
list.to_array(&mut array);sourcepub fn to_array_new(&mut self) -> Vec<CString>
pub fn to_array_new(&mut self) -> Vec<CString>
Convert the CList to an array.
§Example
let mut list = DebugCList::new(10);
let array = list.to_array_new();Auto Trait Implementations§
impl Freeze for DebugCList
impl RefUnwindSafe for DebugCList
impl !Send for DebugCList
impl !Sync for DebugCList
impl Unpin for DebugCList
impl UnwindSafe for DebugCList
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