Struct piston_window::prelude::UpdateArgs
source · pub struct UpdateArgs {
pub dt: f64,
}
Expand description
Update arguments, such as delta time in seconds.
Fields§
§dt: f64
Delta time in seconds.
Trait Implementations§
source§impl Clone for UpdateArgs
impl Clone for UpdateArgs
source§fn clone(&self) -> UpdateArgs
fn clone(&self) -> UpdateArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpdateArgs
impl Debug for UpdateArgs
source§impl<'de> Deserialize<'de> for UpdateArgs
impl<'de> Deserialize<'de> for UpdateArgs
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<UpdateArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<UpdateArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<UpdateArgs> for Event
impl From<UpdateArgs> for Event
source§fn from(args: UpdateArgs) -> Event
fn from(args: UpdateArgs) -> Event
Converts to this type from the input type.
source§impl From<UpdateArgs> for Loop
impl From<UpdateArgs> for Loop
source§fn from(args: UpdateArgs) -> Loop
fn from(args: UpdateArgs) -> Loop
Converts to this type from the input type.
source§impl PartialEq for UpdateArgs
impl PartialEq for UpdateArgs
source§fn eq(&self, other: &UpdateArgs) -> bool
fn eq(&self, other: &UpdateArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UpdateArgs
impl PartialOrd for UpdateArgs
source§fn partial_cmp(&self, other: &UpdateArgs) -> Option<Ordering>
fn partial_cmp(&self, other: &UpdateArgs) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for UpdateArgs
impl Serialize for UpdateArgs
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for UpdateArgs
impl StructuralPartialEq for UpdateArgs
Auto Trait Implementations§
impl Freeze for UpdateArgs
impl RefUnwindSafe for UpdateArgs
impl Send for UpdateArgs
impl Sync for UpdateArgs
impl Unpin for UpdateArgs
impl UnwindSafe for UpdateArgs
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