pub struct ObjectList { /* private fields */ }Implementations§
Source§impl ObjectList
impl ObjectList
pub fn new() -> Self
pub fn front<T>(&mut self) -> Option<&T>
pub fn front_mut<T>(&mut self) -> Option<&mut T>
pub fn front_mut_raw(&mut self) -> Option<*mut c_void>
pub fn push_front<T>(&mut self, element: T)
pub fn push_front_raw(&mut self, ptr: *mut c_void)
Sourcepub fn pop_front_raw(&mut self) -> Option<*mut c_void>
pub fn pop_front_raw(&mut self) -> Option<*mut c_void>
如果是闭包,还是要获取裸指针再手动转换,不然类型有问题
pub fn back<T>(&mut self) -> Option<&T>
pub fn back_mut<T>(&mut self) -> Option<&mut T>
pub fn back_mut_raw(&mut self) -> Option<*mut c_void>
pub fn push_back<T>(&mut self, element: T)
pub fn push_back_raw(&mut self, ptr: *mut c_void)
Sourcepub fn pop_back_raw(&mut self) -> Option<*mut c_void>
pub fn pop_back_raw(&mut self) -> Option<*mut c_void>
如果是闭包,还是要获取裸指针再手动转换,不然类型有问题
pub fn len(&self) -> usize
pub fn get<T>(&self, index: usize) -> Option<&T>
pub fn get_mut<T>(&mut self, index: usize) -> Option<&mut T>
pub fn get_mut_raw(&mut self, index: usize) -> Option<*mut c_void>
pub fn is_empty(&self) -> bool
pub fn move_front_to_back(&mut self)
pub fn remove_raw(&mut self, val: *mut c_void) -> Option<*mut c_void>
pub fn iter_mut(&mut self) -> IterMut<'_, *mut c_void>
pub fn iter(&self) -> Iter<'_, *mut c_void>
Trait Implementations§
Source§impl AsMut<ObjectList> for ObjectList
impl AsMut<ObjectList> for ObjectList
Source§fn as_mut(&mut self) -> &mut ObjectList
fn as_mut(&mut self) -> &mut ObjectList
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ObjectList> for ObjectList
impl AsRef<ObjectList> for ObjectList
Source§fn as_ref(&self) -> &ObjectList
fn as_ref(&self) -> &ObjectList
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Debug for ObjectList
impl Debug for ObjectList
Source§impl Default for ObjectList
impl Default for ObjectList
Source§impl PartialEq for ObjectList
impl PartialEq for ObjectList
impl Eq for ObjectList
impl StructuralPartialEq for ObjectList
Auto Trait Implementations§
impl Freeze for ObjectList
impl RefUnwindSafe for ObjectList
impl !Send for ObjectList
impl !Sync for ObjectList
impl Unpin for ObjectList
impl UnwindSafe for ObjectList
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