split client/sync
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
55b8908894
commit
828cb96ba9
4 changed files with 870 additions and 826 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue