[−][src]Struct rendy_frame::cirque::Cirque
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]
&mut self,
frames: &Frames<B>,
alloc: impl FnOnce() -> I,
complete: impl Fn(P) -> T
) -> CirqueRef<T, I, P>
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,
P: Send,
T: Send,
impl<T, I, P> Sync for Cirque<T, I, P> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,
impl<T, I, P> Unpin for Cirque<T, I, P> where
P: Unpin,
T: Unpin,
P: Unpin,
T: Unpin,
impl<T, I, P> UnwindSafe for Cirque<T, I, P> where
P: UnwindSafe,
T: UnwindSafe,
P: UnwindSafe,
T: UnwindSafe,
impl<T, I, P> RefUnwindSafe for Cirque<T, I, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,