split client/sync

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-16 05:32:27 +00:00 committed by strawberry
parent 55b8908894
commit 828cb96ba9
4 changed files with 870 additions and 826 deletions

View file

@ -40,6 +40,16 @@ pub use self::{
#[inline]
pub fn exchange<T>(state: &mut T, source: T) -> T { std::mem::replace(state, source) }
#[macro_export]
macro_rules! extract_variant {
($e:expr, $variant:path) => {
match $e {
$variant(value) => Some(value),
_ => None,
}
};
}
#[macro_export]
macro_rules! at {
($idx:tt) => {