pub trait MapComponents {
type Scalar;
// Required methods
fn map_components_unary(
self,
f: impl Fn(Self::Scalar) -> Self::Scalar,
) -> Self;
fn map_components_binary(
self,
other: Self,
f: impl Fn(Self::Scalar, Self::Scalar) -> Self::Scalar,
) -> Self;
}Required Associated Types§
Required Methods§
Sourcefn map_components_unary(self, f: impl Fn(Self::Scalar) -> Self::Scalar) -> Self
fn map_components_unary(self, f: impl Fn(Self::Scalar) -> Self::Scalar) -> Self
Returns the point after applying f component-wise.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.