drawme 0.0.0

Static 2d rendering engine skia alternative
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[macro_export]
macro_rules! impl_from {
    ($source:ty, $enum:ty, ($param:ident) => $body:block ) => {
        impl From<$source> for $enum {
            fn from($param: $source) -> $enum {
                $body
            }
        }

        impl<'a> From<$source> for std::borrow::Cow<'a, $enum> {
            fn from($param: $source) -> std::borrow::Cow<'a, $enum> {
                std::borrow::Cow::Owned($body)
            }
        }
    };
}