affn 0.5.0

Affine geometry primitives: strongly-typed coordinate systems, reference frames, and centers for scientific computing.
Documentation
1
2
3
4
5
6
//! Shared serde utility functions.

/// Returns `true` if `T` is a zero-sized type (for `skip_serializing_if`).
pub(crate) fn is_zero_sized<T>(_: &T) -> bool {
    std::mem::size_of::<T>() == 0
}