Struct veloren_common_net::synced_components::inner::BodyData
pub struct BodyData<BodyMeta, SpeciesData> {
pub body: BodyMeta,
pub species: SpeciesData,
}
Expand description
Data representing data generic to the body together with per-species data.
NOTE: Deliberately don’t (yet?) implement serialize.
Fields§
§body: BodyMeta
Shared metadata for this whole body type.
species: SpeciesData
All the metadata for species with this body type.
Trait Implementations§
§impl<'de, BodyMeta, SpeciesData> Deserialize<'de> for BodyData<BodyMeta, SpeciesData>where
BodyMeta: Deserialize<'de>,
SpeciesData: Deserialize<'de>,
impl<'de, BodyMeta, SpeciesData> Deserialize<'de> for BodyData<BodyMeta, SpeciesData>where
BodyMeta: Deserialize<'de>,
SpeciesData: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BodyData<BodyMeta, SpeciesData>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BodyData<BodyMeta, SpeciesData>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<BodyMeta, SpeciesData> Freeze for BodyData<BodyMeta, SpeciesData>
impl<BodyMeta, SpeciesData> RefUnwindSafe for BodyData<BodyMeta, SpeciesData>where
BodyMeta: RefUnwindSafe,
SpeciesData: RefUnwindSafe,
impl<BodyMeta, SpeciesData> Send for BodyData<BodyMeta, SpeciesData>
impl<BodyMeta, SpeciesData> Sync for BodyData<BodyMeta, SpeciesData>
impl<BodyMeta, SpeciesData> Unpin for BodyData<BodyMeta, SpeciesData>
impl<BodyMeta, SpeciesData> UnwindSafe for BodyData<BodyMeta, SpeciesData>where
BodyMeta: UnwindSafe,
SpeciesData: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more