Lines Matching full:pub
15 pub use self::impl_list_item_mod::{
20 pub use self::arc::{impl_list_arc_safe, AtomicTracker, ListArc, ListArcSafe, TryNewListArc};
23 pub use self::arc_field::{define_list_arc_field_getter, ListArcField};
38 pub struct List<T: ?Sized + ListItem<ID>, const ID: u64 = 0> {
68 pub unsafe trait ListItem<const ID: u64 = 0>: ListArcSafe<ID> {
146 pub struct ListLinks<const ID: u64 = 0> {
162 pub fn new() -> impl PinInit<Self> { in new()
195 pub struct ListLinksSelfPtr<T: ?Sized, const ID: u64 = 0> {
199 pub inner: ListLinks<ID>,
216 pub const LIST_LINKS_SELF_PTR_OFFSET: usize = core::mem::offset_of!(Self, self_ptr);
219 pub fn new() -> impl PinInit<Self> { in new()
236 pub const fn new() -> Self { in new()
244 pub fn is_empty(&self) -> bool { in is_empty()
249 pub fn push_back(&mut self, item: ListArc<T, ID>) { in push_back()
288 pub fn push_front(&mut self, item: ListArc<T, ID>) { in push_front()
327 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back()
339 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front()
356 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove()
463 pub fn push_all_back(&mut self, other: &mut List<T, ID>) { in push_all_back()
494 pub fn cursor_front(&mut self) -> Option<Cursor<'_, T, ID>> { in cursor_front()
506 pub fn iter(&self) -> Iter<'_, T, ID> { in iter()
539 pub struct Iter<'a, T: ?Sized + ListItem<ID>, const ID: u64 = 0> {
584 pub struct Cursor<'a, T: ?Sized + ListItem<ID>, const ID: u64 = 0> {
591 pub fn current(&self) -> ArcBorrow<'_, T> { in current()
607 pub fn next(self) -> Option<Cursor<'a, T, ID>> { in next()
624 pub fn prev(self) -> Option<Cursor<'a, T, ID>> { in prev()
641 pub fn remove(self) -> ListArc<T, ID> { in remove()
659 pub struct IntoIter<T: ?Sized + ListItem<ID>, const ID: u64 = 0> {