pub struct FSMStateClosure<D, P, S, Entry, Exit>where
D: Clone + Send + Sync,
P: Clone + Send + Sync + Fn(&mut D, &mut FSMCore, &mut RenderableParams, Duration, &Scene, Point<isize>),
S: Clone + Send + Sync + Fn(&D, &Img, Point<f64>, Duration, Point<isize>) -> Rgba<u8>,
Entry: Clone + Send + Sync + Fn(&mut D, Option<String>),
Exit: Clone + Send + Sync + Fn(&mut D, String),{
pub data: D,
pub process: P,
pub shader: S,
pub entry: Entry,
pub exit: Exit,
}Fields§
§data: D§process: P§shader: S§entry: Entry§exit: ExitTrait Implementations§
source§impl<D, P, S, Entry, Exit> Clone for FSMStateClosure<D, P, S, Entry, Exit>where
D: Clone + Send + Sync + Clone,
P: Clone + Send + Sync + Fn(&mut D, &mut FSMCore, &mut RenderableParams, Duration, &Scene, Point<isize>) + Clone,
S: Clone + Send + Sync + Fn(&D, &Img, Point<f64>, Duration, Point<isize>) -> Rgba<u8> + Clone,
Entry: Clone + Send + Sync + Fn(&mut D, Option<String>) + Clone,
Exit: Clone + Send + Sync + Fn(&mut D, String) + Clone,
impl<D, P, S, Entry, Exit> Clone for FSMStateClosure<D, P, S, Entry, Exit>where D: Clone + Send + Sync + Clone, P: Clone + Send + Sync + Fn(&mut D, &mut FSMCore, &mut RenderableParams, Duration, &Scene, Point<isize>) + Clone, S: Clone + Send + Sync + Fn(&D, &Img, Point<f64>, Duration, Point<isize>) -> Rgba<u8> + Clone, Entry: Clone + Send + Sync + Fn(&mut D, Option<String>) + Clone, Exit: Clone + Send + Sync + Fn(&mut D, String) + Clone,
source§fn clone(&self) -> FSMStateClosure<D, P, S, Entry, Exit>
fn clone(&self) -> FSMStateClosure<D, P, S, Entry, Exit>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<D, P, S, Entry, Exit> FSMState for FSMStateClosure<D, P, S, Entry, Exit>where
D: Clone + Send + Sync,
P: Clone + Send + Sync + Fn(&mut D, &mut FSMCore, &mut RenderableParams, Duration, &Scene, Point<isize>),
S: Clone + Send + Sync + Fn(&D, &Img, Point<f64>, Duration, Point<isize>) -> Rgba<u8>,
Entry: Clone + Send + Sync + Fn(&mut D, Option<String>),
Exit: Clone + Send + Sync + Fn(&mut D, String),
impl<D, P, S, Entry, Exit> FSMState for FSMStateClosure<D, P, S, Entry, Exit>where D: Clone + Send + Sync, P: Clone + Send + Sync + Fn(&mut D, &mut FSMCore, &mut RenderableParams, Duration, &Scene, Point<isize>), S: Clone + Send + Sync + Fn(&D, &Img, Point<f64>, Duration, Point<isize>) -> Rgba<u8>, Entry: Clone + Send + Sync + Fn(&mut D, Option<String>), Exit: Clone + Send + Sync + Fn(&mut D, String),
fn entry(&mut self, from: Option<String>)
fn exit(&mut self, to: String)
fn get_pixel( &self, current_frame: &Img, uv_coords: Point<f64>, time: Duration, abs_position: Point<isize> ) -> Rgba<u8>
fn process( &mut self, fsm: &mut FSMCore, renderable: &mut RenderableParams, time: Duration, scene: &Scene, abs_position: Point<isize> )
Auto Trait Implementations§
impl<D, P, S, Entry, Exit> RefUnwindSafe for FSMStateClosure<D, P, S, Entry, Exit>where D: RefUnwindSafe, Entry: RefUnwindSafe, Exit: RefUnwindSafe, P: RefUnwindSafe, S: RefUnwindSafe,
impl<D, P, S, Entry, Exit> Send for FSMStateClosure<D, P, S, Entry, Exit>
impl<D, P, S, Entry, Exit> Sync for FSMStateClosure<D, P, S, Entry, Exit>
impl<D, P, S, Entry, Exit> Unpin for FSMStateClosure<D, P, S, Entry, Exit>where D: Unpin, Entry: Unpin, Exit: Unpin, P: Unpin, S: Unpin,
impl<D, P, S, Entry, Exit> UnwindSafe for FSMStateClosure<D, P, S, Entry, Exit>where D: UnwindSafe, Entry: UnwindSafe, Exit: UnwindSafe, P: UnwindSafe, S: 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