pub struct TypeSafeTransformer<S: TransformState, InDim: Dimension, OutDim: Dimension> { /* private fields */ }Expand description
Type-safe transformer with compile-time state and dimension tracking
§Type Parameters
S- State marker (Unfitted or Fitted)InDim- Input dimension marker (Dynamic or Known) OutDim- Output dimension marker (Dynamic or Known)
Implementations§
Source§impl<InDim: Dimension, OutDim: Dimension> TypeSafeTransformer<Unfitted, InDim, OutDim>
impl<InDim: Dimension, OutDim: Dimension> TypeSafeTransformer<Unfitted, InDim, OutDim>
Sourcepub fn new(
config: TypeSafeConfig,
) -> TypeSafeTransformer<Unfitted, Dynamic, Dynamic>
pub fn new( config: TypeSafeConfig, ) -> TypeSafeTransformer<Unfitted, Dynamic, Dynamic>
Create a new unfitted transformer with dynamic dimensions
Sourcepub fn with_input_dim<const N: usize>(
config: TypeSafeConfig,
) -> TypeSafeTransformer<Unfitted, Known<N>, Dynamic>
pub fn with_input_dim<const N: usize>( config: TypeSafeConfig, ) -> TypeSafeTransformer<Unfitted, Known<N>, Dynamic>
Create a new unfitted transformer with known input dimension
Sourcepub fn with_dimensions<const IN: usize, const OUT: usize>(
config: TypeSafeConfig,
) -> TypeSafeTransformer<Unfitted, Known<IN>, Known<OUT>>
pub fn with_dimensions<const IN: usize, const OUT: usize>( config: TypeSafeConfig, ) -> TypeSafeTransformer<Unfitted, Known<IN>, Known<OUT>>
Create a new unfitted transformer with known input and output dimensions
Trait Implementations§
Source§impl<S: Clone + TransformState, InDim: Clone + Dimension, OutDim: Clone + Dimension> Clone for TypeSafeTransformer<S, InDim, OutDim>
impl<S: Clone + TransformState, InDim: Clone + Dimension, OutDim: Clone + Dimension> Clone for TypeSafeTransformer<S, InDim, OutDim>
Source§fn clone(&self) -> TypeSafeTransformer<S, InDim, OutDim>
fn clone(&self) -> TypeSafeTransformer<S, InDim, OutDim>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S, InDim, OutDim> Freeze for TypeSafeTransformer<S, InDim, OutDim>
impl<S, InDim, OutDim> RefUnwindSafe for TypeSafeTransformer<S, InDim, OutDim>
impl<S, InDim, OutDim> Send for TypeSafeTransformer<S, InDim, OutDim>
impl<S, InDim, OutDim> Sync for TypeSafeTransformer<S, InDim, OutDim>
impl<S, InDim, OutDim> Unpin for TypeSafeTransformer<S, InDim, OutDim>
impl<S, InDim, OutDim> UnwindSafe for TypeSafeTransformer<S, InDim, OutDim>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more