pub struct TypedFeatureUnion<I, O> { /* private fields */ }Expand description
Type-safe feature union that validates input types
Implementations§
Source§impl<I, O> TypedFeatureUnion<I, O>
impl<I, O> TypedFeatureUnion<I, O>
Sourcepub fn add_transformer<T>(
self,
name: &str,
_transformer: TypedTransformer<I, O, T>,
) -> Self
pub fn add_transformer<T>( self, name: &str, _transformer: TypedTransformer<I, O, T>, ) -> Self
Add a transformer with type validation
Sourcepub fn transformer_names(&self) -> &[String]
pub fn transformer_names(&self) -> &[String]
Get transformer names
Trait Implementations§
Auto Trait Implementations§
impl<I, O> Freeze for TypedFeatureUnion<I, O>
impl<I, O> RefUnwindSafe for TypedFeatureUnion<I, O>where
I: RefUnwindSafe,
O: RefUnwindSafe,
impl<I, O> Send for TypedFeatureUnion<I, O>
impl<I, O> Sync for TypedFeatureUnion<I, O>
impl<I, O> Unpin for TypedFeatureUnion<I, O>
impl<I, O> UnwindSafe for TypedFeatureUnion<I, O>where
I: UnwindSafe,
O: UnwindSafe,
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> 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