Trait Mutation

Source
pub trait Mutation<T>:
    Debug
    + Send
    + Sync
    + 'static
where T: Mutable,
{ // Required method fn mutate(self, target: T) -> Result<T, T::Error>; }

Required Methods§

Source

fn mutate(self, target: T) -> Result<T, T::Error>

Implementations on Foreign Types§

Source§

impl<M, T> Mutation<T> for Box<M>
where M: BoxedMutation<T> + ?Sized, T: Mutable,

Source§

fn mutate(self, target: T) -> Result<T, <T as Mutable>::Error>

Implementors§

Source§

impl Mutation<Brightness> for AdaptTo

Source§

impl Mutation<Brightness> for ContrastTo

Source§

impl Mutation<ColorPair> for AdaptBgToFg

Source§

impl Mutation<ColorPair> for AdaptFgToBg

Source§

impl Mutation<ColorPair> for ContrastBgToFg

Source§

impl Mutation<ColorPair> for ContrastFgToBg

Source§

impl<F, T> Mutation<T> for MutationFn<F>
where T: Mutable, F: FnOnce(T) -> Result<T, T::Error> + Send + Sync + 'static,

Source§

impl<M> Mutation<Color> for MutateBrightness<M>
where M: Mutation<Brightness>,

Source§

impl<M> Mutation<ColorPair> for MutateBg<M>
where M: Mutation<Color>,

Source§

impl<M> Mutation<ColorPair> for MutateFg<M>
where M: Mutation<Color>,

Source§

impl<M> Mutation<Tile> for MutateColors<M>
where M: Mutation<ColorPair>,

Source§

impl<M> Mutation<Tile> for MutateGrapheme<M>
where M: Mutation<Id>,

Source§

impl<M, N, T> Mutation<T> for Then<M, N>
where T: Mutable, M: Mutation<T>, N: Mutation<T>,

Source§

impl<T> Mutation<T> for Id
where T: Mutable,

Source§

impl<T> Mutation<T> for Set<T>
where T: Mutable + Debug + 'static,