Struct veloren_client::WeatherLerp
source · pub(crate) struct WeatherLerp {
pub(crate) old: (SharedWeatherGrid, Instant),
pub(crate) new: (SharedWeatherGrid, Instant),
pub(crate) old_local_wind: (Vec2<f32>, Instant),
pub(crate) new_local_wind: (Vec2<f32>, Instant),
pub(crate) local_wind: Vec2<f32>,
}
Fields§
§old: (SharedWeatherGrid, Instant)
§new: (SharedWeatherGrid, Instant)
§old_local_wind: (Vec2<f32>, Instant)
§new_local_wind: (Vec2<f32>, Instant)
§local_wind: Vec2<f32>
Implementations§
source§impl WeatherLerp
impl WeatherLerp
pub(crate) fn local_wind_update(&mut self, wind: Vec2<f32>)
pub(crate) fn update_local_wind(&mut self)
pub(crate) fn weather_update(&mut self, weather: SharedWeatherGrid)
pub(crate) fn update(&mut self, to_update: &mut WeatherGrid)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WeatherLerp
impl Send for WeatherLerp
impl Sync for WeatherLerp
impl Unpin for WeatherLerp
impl UnwindSafe for WeatherLerp
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
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<Context> SubContext<Context> for Context
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.