diff --git a/source/postcard-schema/src/impls/nalgebra_v0_33.rs b/source/postcard-schema/src/impls/nalgebra_v0_33.rs index e4c71ce..a860100 100644 --- a/source/postcard-schema/src/impls/nalgebra_v0_33.rs +++ b/source/postcard-schema/src/impls/nalgebra_v0_33.rs @@ -32,6 +32,14 @@ impl Schema for nalgebra_v0_33::Quaternion::SCHEMA; } +#[cfg_attr(docsrs, doc(cfg(feature = "nalgebra-v0_33")))] +impl Schema for nalgebra_v0_33::Point +where + T: Schema + nalgebra_v0_33::Scalar, +{ + const SCHEMA: &'static NamedType = nalgebra_v0_33::SVector::::SCHEMA; +} + /// Const version of the const-unstable [`<[[T; N]]>::as_flattened()`] const fn flatten(slice: &[[T; N]]) -> &[T] { const { diff --git a/source/postcard-schema/src/impls/nalgebra_v0_34.rs b/source/postcard-schema/src/impls/nalgebra_v0_34.rs index 504aa2a..9732c50 100644 --- a/source/postcard-schema/src/impls/nalgebra_v0_34.rs +++ b/source/postcard-schema/src/impls/nalgebra_v0_34.rs @@ -32,6 +32,14 @@ impl Schema for nalgebra_v0_34::Quaternion::SCHEMA; } +#[cfg_attr(docsrs, doc(cfg(feature = "nalgebra-v0_34")))] +impl Schema for nalgebra_v0_34::Point +where + T: Schema + nalgebra_v0_34::Scalar, +{ + const SCHEMA: &'static NamedType = nalgebra_v0_34::SVector::::SCHEMA; +} + /// Const version of the const-unstable [`<[[T; N]]>::as_flattened()`] const fn flatten(slice: &[[T; N]]) -> &[T] { const {