pub(crate) mod container;
pub(crate) mod iterator;
pub(crate) mod raw;
pub(crate) mod reference;
#[cfg(test)]
mod test;
pub use crate::collections::stack::iterator::*;
pub use crate::collections::stack::reference::*;
mod asserts {
use super::*;
use static_assertions::{assert_impl_all, assert_not_impl_all};
use crate::collections::stack::container::RcuStack;
use crate::rcu::default::RcuDefaultFlavor;
use crate::rcu::guard::RcuGuardMemb;
use crate::utility::asserts::*;
mod rcu_list {
use super::*;
assert_not_impl_all!(RcuStack<NotSendNotSync, RcuDefaultFlavor>: Send);
assert_not_impl_all!(RcuStack<NotSendNotSync, RcuDefaultFlavor>: Sync);
assert_impl_all!(RcuStack<SendButNotSync, RcuDefaultFlavor>: Send);
assert_not_impl_all!(RcuStack<SendButNotSync, RcuDefaultFlavor>: Sync);
assert_not_impl_all!(RcuStack<NotSendButSync, RcuDefaultFlavor>: Send);
assert_impl_all!(RcuStack<NotSendButSync, RcuDefaultFlavor>: Sync);
assert_impl_all!(RcuStack<SendAndSync, RcuDefaultFlavor>: Send);
assert_impl_all!(RcuStack<SendAndSync, RcuDefaultFlavor>: Sync);
}
mod rcu_list_ref_owned {
use super::*;
assert_not_impl_all!(RefOwned<NotSendNotSync>: Send);
assert_not_impl_all!(RefOwned<NotSendNotSync>: Sync);
assert_impl_all!(RefOwned<SendButNotSync>: Send);
assert_not_impl_all!(RefOwned<SendButNotSync>: Sync);
assert_not_impl_all!(RefOwned<NotSendButSync>: Send);
assert_impl_all!(RefOwned<NotSendButSync>: Sync);
assert_impl_all!(RefOwned<SendAndSync>: Send);
assert_impl_all!(RefOwned<SendAndSync>: Sync);
}
mod rcu_list_iter {
use super::*;
assert_not_impl_all!(Iter<'_, NotSendNotSync, RcuGuardMemb>: Send);
assert_not_impl_all!(Iter<'_, NotSendNotSync, RcuGuardMemb>: Sync);
assert_not_impl_all!(Iter<'_, SendButNotSync, RcuGuardMemb>: Send);
assert_not_impl_all!(Iter<'_, SendButNotSync, RcuGuardMemb>: Sync);
assert_not_impl_all!(Iter<'_, NotSendButSync, RcuGuardMemb>: Send);
assert_not_impl_all!(Iter<'_, NotSendButSync, RcuGuardMemb>: Sync);
assert_not_impl_all!(Iter<'_, SendAndSync, RcuGuardMemb>: Send);
assert_not_impl_all!(Iter<'_, SendAndSync, RcuGuardMemb>: Sync);
}
mod rcu_list_iter_ref {
use super::*;
assert_not_impl_all!(IterRef<NotSendNotSync, RcuDefaultFlavor>: Send);
assert_not_impl_all!(IterRef<NotSendNotSync, RcuDefaultFlavor>: Sync);
assert_not_impl_all!(IterRef<SendButNotSync, RcuDefaultFlavor>: Send);
assert_not_impl_all!(IterRef<SendButNotSync, RcuDefaultFlavor>: Sync);
assert_not_impl_all!(IterRef<NotSendButSync, RcuDefaultFlavor>: Send);
assert_not_impl_all!(IterRef<NotSendButSync, RcuDefaultFlavor>: Sync);
assert_not_impl_all!(IterRef<SendAndSync, RcuDefaultFlavor>: Send);
assert_not_impl_all!(IterRef<SendAndSync, RcuDefaultFlavor>: Sync);
}
}