pub struct FrameResult<'ctx, T> {
pub value: T,
pub draw_data: &'ctx mut DrawData,
}Expand description
Result returned by Context::frame_with_result.
Fields§
§value: TValue returned by the UI-building closure.
draw_data: &'ctx mut DrawDataDraw data produced by rendering the frame after the closure returned.
Auto Trait Implementations§
impl<'ctx, T> Freeze for FrameResult<'ctx, T>where
T: Freeze,
impl<'ctx, T> RefUnwindSafe for FrameResult<'ctx, T>where
T: RefUnwindSafe,
impl<'ctx, T> !Send for FrameResult<'ctx, T>
impl<'ctx, T> !Sync for FrameResult<'ctx, T>
impl<'ctx, T> Unpin for FrameResult<'ctx, T>where
T: Unpin,
impl<'ctx, T> UnsafeUnpin for FrameResult<'ctx, T>where
T: UnsafeUnpin,
impl<'ctx, T> !UnwindSafe for FrameResult<'ctx, T>
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