pub struct Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,{
pub _windowing: WinGlutin,
pub _input: XformInput,
pub _game_logic: GameLogic,
pub _renderer: Renderer,
}
Fields§
§_windowing: WinGlutin
§_input: XformInput
§_game_logic: GameLogic
§_renderer: Renderer
Trait Implementations§
Source§impl<GameLogic> AsMut<GameLogic> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
impl<GameLogic> AsMut<GameLogic> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
Source§fn as_mut(&mut self) -> &mut GameLogic
fn as_mut(&mut self) -> &mut GameLogic
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<GameLogic> AsMut<Renderer> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
impl<GameLogic> AsMut<Renderer> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
Source§impl<GameLogic> AsMut<WinGlutin> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
impl<GameLogic> AsMut<WinGlutin> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
Source§impl<GameLogic> AsMut<XformInput> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
impl<GameLogic> AsMut<XformInput> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
Source§fn as_mut(&mut self) -> &mut XformInput
fn as_mut(&mut self) -> &mut XformInput
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<GameLogic> IKernel<WinGlutin, XformInput, GameLogic, Renderer> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
use default implementation for run method
impl<GameLogic> IKernel<WinGlutin, XformInput, GameLogic, Renderer> for Kernel<GameLogic>where
GameLogic: IGameLogic<EventInput = <XformInput as IUi>::EventInputFiltered, EventRender = <Renderer as IRenderer>::EventRender>,
<GameLogic as IGameLogic>::RenderObj: Into<Vec<<GameLogic as IGameLogic>::EventRender>>,
use default implementation for run method
Auto Trait Implementations§
impl<GameLogic> !Freeze for Kernel<GameLogic>
impl<GameLogic> !RefUnwindSafe for Kernel<GameLogic>
impl<GameLogic> !Send for Kernel<GameLogic>
impl<GameLogic> !Sync for Kernel<GameLogic>
impl<GameLogic> Unpin for Kernel<GameLogic>
impl<GameLogic> !UnwindSafe for Kernel<GameLogic>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more