pub struct DebugCList {
pub inner: RawCList,
}Expand description
Fields§
§inner: RawCListImplementations§
Source§impl DebugCList
impl DebugCList
Sourcepub fn get(&mut self, index: usize) -> CString
pub fn get(&mut self, index: usize) -> CString
Get the CList with the given index.
§Example
let mut list = DebugCList::new(10);
let data = list.get(0);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