pub enum Transform<T, B = T> {
Owned(T),
Borrowed(B),
}Expand description
Indicates how incoming data should be transformed before being parsed and validated by a data guard.
See the documentation for FromData for usage details.
Variants
Owned(T)
Indicates that data should be or has been transformed into the
FromData::Owned variant.
Borrowed(B)
Indicates that data should be or has been transformed into the
FromData::Borrowed variant.
Implementations
Auto Trait Implementations
impl<T, B> RefUnwindSafe for Transform<T, B> where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for Transform<T, B> where
B: Send,
T: Send,
impl<T, B> Sync for Transform<T, B> where
B: Sync,
T: Sync,
impl<T, B> Unpin for Transform<T, B> where
B: Unpin,
T: Unpin,
impl<T, B> UnwindSafe for Transform<T, B> where
B: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
sourcefn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self into a collection.