o3 0.21.1

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::depot;

/// # Safety
/// The implementation updates only its original native endpoint owner.
pub unsafe trait EndsPop<L: depot::raw::Link> {
    /// # Safety
    /// The stable front is current; its exact callback returns its stored successor without reentry.
    unsafe fn pop<T, R>(
        self,
        front: L::Item,
        input: T,
        pop: impl FnOnce(L::Item, T) -> (L, R),
    ) -> R;
}