[][src]Struct rendy_frame::cirque::Cirque

pub struct Cirque<T, I = T, P = T> { /* fields omitted */ }

Resource cirque. It simplifies using multiple resources when same resource cannot be used simulteneously.

Methods

impl<T, I, P> Cirque<T, I, P>[src]

pub fn new() -> Self[src]

Create new empty Cirque

pub fn dispose(self, dispose: impl FnMut(Either<T, P>))[src]

Dispose of the Cirque.

pub fn get<B: Backend>(
    &mut self,
    frames: &Frames<B>,
    alloc: impl FnOnce() -> I,
    complete: impl Fn(P) -> T
) -> CirqueRef<T, I, P>
[src]

Get CirqueRef for specified frames range. Allocate new instance in initial state if no ready values exist.

Trait Implementations

impl<T, I, P> Default for Cirque<T, I, P>[src]

impl<T: Debug, I: Debug, P: Debug> Debug for Cirque<T, I, P>[src]

Auto Trait Implementations

impl<T, I, P> Send for Cirque<T, I, P> where
    P: Send,
    T: Send

impl<T, I, P> Sync for Cirque<T, I, P> where
    P: Sync,
    T: Sync

impl<T, I, P> Unpin for Cirque<T, I, P> where
    P: Unpin,
    T: Unpin

impl<T, I, P> UnwindSafe for Cirque<T, I, P> where
    P: UnwindSafe,
    T: UnwindSafe

impl<T, I, P> RefUnwindSafe for Cirque<T, I, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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