Trait Action

Source
pub trait Action<T> {
    type Result;

    // Required method
    fn action(&mut self, val: T) -> Self::Result;
}
Expand description

Represents an action on objects.

Required Associated Types§

Source

type Result

The action result type.

Required Methods§

Source

fn action(&mut self, val: T) -> Self::Result

Performs action on object.

Implementations on Foreign Types§

Source§

impl<'a, T, U> Action<T> for &'a RefCell<U>
where U: Action<T>,

Source§

type Result = <U as Action<T>>::Result

Source§

fn action(&mut self, val: T) -> Self::Result

Source§

impl<T, U> Action<T> for Rc<RefCell<U>>
where U: Action<T>,

Source§

type Result = <U as Action<T>>::Result

Source§

fn action(&mut self, val: T) -> Self::Result

Implementors§