Struct bottomless_pit::render::RenderInformation
source · pub struct RenderInformation<'pass, 'others> { /* private fields */ }Expand description
RenderInformation contains all the information needed to render objects to the sreen. You should never have to worry about lifetimes as the way the event loop is strutured RenderInformation will live long enough, just properly annotate your functions like so:
fn render<'a, 'b>(&'b mut self, mut render_handle: RenderInformation<'a, 'b>) where 'b: 'a {
// do something here
}Auto Trait Implementations§
impl<'pass, 'others> !RefUnwindSafe for RenderInformation<'pass, 'others>
impl<'pass, 'others> Send for RenderInformation<'pass, 'others>
impl<'pass, 'others> Sync for RenderInformation<'pass, 'others>
impl<'pass, 'others> Unpin for RenderInformation<'pass, 'others>
impl<'pass, 'others> !UnwindSafe for RenderInformation<'pass, 'others>
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