Struct veloren_common_net::synced_components::inner::body::humanoid::species::Cases
pub struct Cases<Elim>where
Elim: PackedElim,{
pub Danari: <Elim as PackedElim>::Danari,
pub Dwarf: <Elim as PackedElim>::Dwarf,
pub Elf: <Elim as PackedElim>::Elf,
pub Human: <Elim as PackedElim>::Human,
pub Orc: <Elim as PackedElim>::Orc,
pub Draugr: <Elim as PackedElim>::Draugr,
}
Fields§
§Danari: <Elim as PackedElim>::Danari
§Dwarf: <Elim as PackedElim>::Dwarf
§Elf: <Elim as PackedElim>::Elf
§Human: <Elim as PackedElim>::Human
§Orc: <Elim as PackedElim>::Orc
§Draugr: <Elim as PackedElim>::Draugr
Trait Implementations§
§impl<'de, Elim> Deserialize<'de> for Cases<Elim>where
Elim: PackedElim,
<Elim as PackedElim>::Danari: Deserialize<'de>,
<Elim as PackedElim>::Dwarf: Deserialize<'de>,
<Elim as PackedElim>::Elf: Deserialize<'de>,
<Elim as PackedElim>::Human: Deserialize<'de>,
<Elim as PackedElim>::Orc: Deserialize<'de>,
<Elim as PackedElim>::Draugr: Deserialize<'de>,
impl<'de, Elim> Deserialize<'de> for Cases<Elim>where
Elim: PackedElim,
<Elim as PackedElim>::Danari: Deserialize<'de>,
<Elim as PackedElim>::Dwarf: Deserialize<'de>,
<Elim as PackedElim>::Elf: Deserialize<'de>,
<Elim as PackedElim>::Human: Deserialize<'de>,
<Elim as PackedElim>::Orc: Deserialize<'de>,
<Elim as PackedElim>::Draugr: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cases<Elim>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cases<Elim>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<Elim> Serialize for Cases<Elim>where
Elim: PackedElim,
<Elim as PackedElim>::Danari: Serialize,
<Elim as PackedElim>::Dwarf: Serialize,
<Elim as PackedElim>::Elf: Serialize,
<Elim as PackedElim>::Human: Serialize,
<Elim as PackedElim>::Orc: Serialize,
<Elim as PackedElim>::Draugr: Serialize,
impl<Elim> Serialize for Cases<Elim>where
Elim: PackedElim,
<Elim as PackedElim>::Danari: Serialize,
<Elim as PackedElim>::Dwarf: Serialize,
<Elim as PackedElim>::Elf: Serialize,
<Elim as PackedElim>::Human: Serialize,
<Elim as PackedElim>::Orc: Serialize,
<Elim as PackedElim>::Draugr: Serialize,
§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<'a, 'b, Elim, Context, Type, S> Typed<((&'a Species,), Context), Type, S> for &'b ElimCase<Cases<Elim>>where
Elim: PackedElim,
&'b <Elim as PackedElim>::Danari: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Dwarf: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Elf: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Human: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Orc: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Draugr: Typed<Context, Type, S>,
impl<'a, 'b, Elim, Context, Type, S> Typed<((&'a Species,), Context), Type, S> for &'b ElimCase<Cases<Elim>>where
Elim: PackedElim,
&'b <Elim as PackedElim>::Danari: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Dwarf: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Elf: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Human: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Orc: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Draugr: Typed<Context, Type, S>,
Auto Trait Implementations§
impl<Elim> Freeze for Cases<Elim>where
<Elim as PackedElim>::Danari: Freeze,
<Elim as PackedElim>::Dwarf: Freeze,
<Elim as PackedElim>::Elf: Freeze,
<Elim as PackedElim>::Human: Freeze,
<Elim as PackedElim>::Orc: Freeze,
<Elim as PackedElim>::Draugr: Freeze,
impl<Elim> RefUnwindSafe for Cases<Elim>where
<Elim as PackedElim>::Danari: RefUnwindSafe,
<Elim as PackedElim>::Dwarf: RefUnwindSafe,
<Elim as PackedElim>::Elf: RefUnwindSafe,
<Elim as PackedElim>::Human: RefUnwindSafe,
<Elim as PackedElim>::Orc: RefUnwindSafe,
<Elim as PackedElim>::Draugr: RefUnwindSafe,
impl<Elim> Send for Cases<Elim>where
<Elim as PackedElim>::Danari: Send,
<Elim as PackedElim>::Dwarf: Send,
<Elim as PackedElim>::Elf: Send,
<Elim as PackedElim>::Human: Send,
<Elim as PackedElim>::Orc: Send,
<Elim as PackedElim>::Draugr: Send,
impl<Elim> Sync for Cases<Elim>where
<Elim as PackedElim>::Danari: Sync,
<Elim as PackedElim>::Dwarf: Sync,
<Elim as PackedElim>::Elf: Sync,
<Elim as PackedElim>::Human: Sync,
<Elim as PackedElim>::Orc: Sync,
<Elim as PackedElim>::Draugr: Sync,
impl<Elim> Unpin for Cases<Elim>where
<Elim as PackedElim>::Danari: Unpin,
<Elim as PackedElim>::Dwarf: Unpin,
<Elim as PackedElim>::Elf: Unpin,
<Elim as PackedElim>::Human: Unpin,
<Elim as PackedElim>::Orc: Unpin,
<Elim as PackedElim>::Draugr: Unpin,
impl<Elim> UnwindSafe for Cases<Elim>where
<Elim as PackedElim>::Danari: UnwindSafe,
<Elim as PackedElim>::Dwarf: UnwindSafe,
<Elim as PackedElim>::Elf: UnwindSafe,
<Elim as PackedElim>::Human: UnwindSafe,
<Elim as PackedElim>::Orc: UnwindSafe,
<Elim as PackedElim>::Draugr: 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
§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