Struct piston_window::UpdateArgs
[−]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
impl Clone for UpdateArgs
impl Clone for UpdateArgs
pub fn clone(&self) -> UpdateArgs
pub fn clone(&self) -> UpdateArgs
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for UpdateArgs
impl Debug for UpdateArgs
impl<'de> Deserialize<'de> for UpdateArgs
impl<'de> Deserialize<'de> for UpdateArgs
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<UpdateArgs, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
impl From<UpdateArgs> for Event
impl From<UpdateArgs> for Event
pub fn from(args: UpdateArgs) -> Event
pub fn from(args: UpdateArgs) -> Event
Performs the conversion.
impl From<UpdateArgs> for Loop
impl From<UpdateArgs> for Loop
pub fn from(args: UpdateArgs) -> Loop
pub fn from(args: UpdateArgs) -> Loop
Performs the conversion.
impl PartialEq<UpdateArgs> for UpdateArgs
impl PartialEq<UpdateArgs> for UpdateArgs
pub fn eq(&self, other: &UpdateArgs) -> bool
pub fn eq(&self, other: &UpdateArgs) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &UpdateArgs) -> bool
pub fn ne(&self, other: &UpdateArgs) -> bool
This method tests for !=
.
impl PartialOrd<UpdateArgs> for UpdateArgs
impl PartialOrd<UpdateArgs> for UpdateArgs
pub fn partial_cmp(&self, other: &UpdateArgs) -> Option<Ordering>
pub fn partial_cmp(&self, other: &UpdateArgs) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Serialize for UpdateArgs
impl Serialize for UpdateArgs
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 RefUnwindSafe for UpdateArgs
impl Send for UpdateArgs
impl Sync for UpdateArgs
impl Unpin for UpdateArgs
impl UnwindSafe for UpdateArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more