Struct gooey::core::Transmogrifiers [−][src]
pub struct Transmogrifiers<F> where
F: Frontend, { /* fields omitted */ }
Expand description
A collection of transmogrifiers to use inside of a frontend.
Implementations
pub fn register_transmogrifier<T>(
&mut self,
transmogrifier: T
) -> Result<(), <F as Frontend>::AnyTransmogrifier> where
T: Into<<F as Frontend>::AnyTransmogrifier>,
pub fn register_transmogrifier<T>(
&mut self,
transmogrifier: T
) -> Result<(), <F as Frontend>::AnyTransmogrifier> where
T: Into<<F as Frontend>::AnyTransmogrifier>,
Registers a transmogrifier.
Errors
If an existing transmogrifier is already registered, the transmogrifier
is returned in Err()
.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for Transmogrifiers<F> where
F: RefUnwindSafe,
<F as Frontend>::AnyTransmogrifier: RefUnwindSafe,
impl<F> Send for Transmogrifiers<F> where
<F as Frontend>::AnyTransmogrifier: Send,
impl<F> Sync for Transmogrifiers<F> where
<F as Frontend>::AnyTransmogrifier: Sync,
impl<F> Unpin for Transmogrifiers<F> where
F: Unpin,
<F as Frontend>::AnyTransmogrifier: Unpin,
impl<F> UnwindSafe for Transmogrifiers<F> where
F: UnwindSafe,
<F as Frontend>::AnyTransmogrifier: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more