[][src]Struct guion_sdl2::core::Core

pub struct Core<E> where
    E: Env + Sync
{ pub sdl: Sdl, pub video: VideoSubsystem, pub timer: TimerSubsystem, pub event: EventSubsystem, pub pump: EventPump, pub queue: Queue<E>, pub font: TextProd, pub default_border: Border, pub default_style: EStyle<E>, }

Fields

sdl: Sdlvideo: VideoSubsystemtimer: TimerSubsystemevent: EventSubsystempump: EventPumpqueue: Queue<E>font: TextProddefault_border: Borderdefault_style: EStyle<E>

Methods

impl<E> Core<E> where
    E: Env + Sync
[src]

pub fn from_sdl2(sdl: Sdl, ttf: Sdl2TtfContext) -> Result<Self, String>[src]

Trait Implementations

impl<E> AsRefMut<Core<E>> for Core<E> where
    E: Env
[src]

impl AsRefMut<Core<SimpleEnv>> for SimpleCtx[src]

Auto Trait Implementations

impl<E> !RefUnwindSafe for Core<E>

impl<E> !Send for Core<E>

impl<E> !Sync for Core<E>

impl<E> Unpin for Core<E> where
    <E as Env>::Backend: Backend<E>,
    <<E as Env>::Backend as Backend<E>>::Event: Unpin,
    <<E as Env>::Backend as Backend<E>>::Size: Unpin,
    <<E as Env>::Backend as Backend<E>>::Style: Unpin,
    <E as Env>::WidgetPath: Unpin

impl<E> !UnwindSafe for Core<E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, I> AsRefMut<I> for T where
    T: AsRef<I> + AsMut<I>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.