Enum gelatin::NextUpdate
source · [−]pub enum NextUpdate {
Soonest,
WaitUntil(Instant),
Latest,
}
Variants
Soonest
Analogous to glutin::ControlFlow::Poll
WaitUntil(Instant)
Analogous to glutin::ControlFlow::WaitUntil
Latest
Analogous to glutin::ControlFlow::Wait
Implementations
sourceimpl NextUpdate
impl NextUpdate
sourcepub fn aggregate(self, other: NextUpdate) -> NextUpdate
pub fn aggregate(self, other: NextUpdate) -> NextUpdate
Returns the next update that’s sooner
Trait Implementations
sourceimpl Clone for NextUpdate
impl Clone for NextUpdate
sourcefn clone(&self) -> NextUpdate
fn clone(&self) -> NextUpdate
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NextUpdate
impl Debug for NextUpdate
sourceimpl From<NextUpdate> for ControlFlow
impl From<NextUpdate> for ControlFlow
sourcefn from(next_update: NextUpdate) -> Self
fn from(next_update: NextUpdate) -> Self
Converts to this type from the input type.
impl Copy for NextUpdate
Auto Trait Implementations
impl RefUnwindSafe for NextUpdate
impl Send for NextUpdate
impl Sync for NextUpdate
impl Unpin for NextUpdate
impl UnwindSafe for NextUpdate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
type Owned = T
type Owned = T
A type that holds a sized version of the content.
sourcefn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.sourcefn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
sourcefn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
sourcefn ref_from_ptr(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.