Struct veloren_common_net::synced_components::inner::body::golem::species::Cases
pub struct Cases<Elim>where
Elim: PackedElim,{
pub StoneGolem: <Elim as PackedElim>::StoneGolem,
pub Treant: <Elim as PackedElim>::Treant,
pub ClayGolem: <Elim as PackedElim>::ClayGolem,
pub WoodGolem: <Elim as PackedElim>::WoodGolem,
pub CoralGolem: <Elim as PackedElim>::CoralGolem,
pub Gravewarden: <Elim as PackedElim>::Gravewarden,
pub AncientEffigy: <Elim as PackedElim>::AncientEffigy,
pub Mogwai: <Elim as PackedElim>::Mogwai,
pub IronGolem: <Elim as PackedElim>::IronGolem,
}
Fields§
§StoneGolem: <Elim as PackedElim>::StoneGolem
§Treant: <Elim as PackedElim>::Treant
§ClayGolem: <Elim as PackedElim>::ClayGolem
§WoodGolem: <Elim as PackedElim>::WoodGolem
§CoralGolem: <Elim as PackedElim>::CoralGolem
§Gravewarden: <Elim as PackedElim>::Gravewarden
§AncientEffigy: <Elim as PackedElim>::AncientEffigy
§Mogwai: <Elim as PackedElim>::Mogwai
§IronGolem: <Elim as PackedElim>::IronGolem
Trait Implementations§
§impl<'de, Elim> Deserialize<'de> for Cases<Elim>where
Elim: PackedElim,
<Elim as PackedElim>::StoneGolem: Deserialize<'de>,
<Elim as PackedElim>::Treant: Deserialize<'de>,
<Elim as PackedElim>::ClayGolem: Deserialize<'de>,
<Elim as PackedElim>::WoodGolem: Deserialize<'de>,
<Elim as PackedElim>::CoralGolem: Deserialize<'de>,
<Elim as PackedElim>::Gravewarden: Deserialize<'de>,
<Elim as PackedElim>::AncientEffigy: Deserialize<'de>,
<Elim as PackedElim>::Mogwai: Deserialize<'de>,
<Elim as PackedElim>::IronGolem: Deserialize<'de>,
impl<'de, Elim> Deserialize<'de> for Cases<Elim>where
Elim: PackedElim,
<Elim as PackedElim>::StoneGolem: Deserialize<'de>,
<Elim as PackedElim>::Treant: Deserialize<'de>,
<Elim as PackedElim>::ClayGolem: Deserialize<'de>,
<Elim as PackedElim>::WoodGolem: Deserialize<'de>,
<Elim as PackedElim>::CoralGolem: Deserialize<'de>,
<Elim as PackedElim>::Gravewarden: Deserialize<'de>,
<Elim as PackedElim>::AncientEffigy: Deserialize<'de>,
<Elim as PackedElim>::Mogwai: Deserialize<'de>,
<Elim as PackedElim>::IronGolem: 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>::StoneGolem: Serialize,
<Elim as PackedElim>::Treant: Serialize,
<Elim as PackedElim>::ClayGolem: Serialize,
<Elim as PackedElim>::WoodGolem: Serialize,
<Elim as PackedElim>::CoralGolem: Serialize,
<Elim as PackedElim>::Gravewarden: Serialize,
<Elim as PackedElim>::AncientEffigy: Serialize,
<Elim as PackedElim>::Mogwai: Serialize,
<Elim as PackedElim>::IronGolem: Serialize,
impl<Elim> Serialize for Cases<Elim>where
Elim: PackedElim,
<Elim as PackedElim>::StoneGolem: Serialize,
<Elim as PackedElim>::Treant: Serialize,
<Elim as PackedElim>::ClayGolem: Serialize,
<Elim as PackedElim>::WoodGolem: Serialize,
<Elim as PackedElim>::CoralGolem: Serialize,
<Elim as PackedElim>::Gravewarden: Serialize,
<Elim as PackedElim>::AncientEffigy: Serialize,
<Elim as PackedElim>::Mogwai: Serialize,
<Elim as PackedElim>::IronGolem: 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>::StoneGolem: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Treant: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::ClayGolem: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::WoodGolem: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::CoralGolem: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Gravewarden: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::AncientEffigy: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Mogwai: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::IronGolem: 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>::StoneGolem: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Treant: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::ClayGolem: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::WoodGolem: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::CoralGolem: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Gravewarden: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::AncientEffigy: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::Mogwai: Typed<Context, Type, S>,
&'b <Elim as PackedElim>::IronGolem: Typed<Context, Type, S>,
Auto Trait Implementations§
impl<Elim> Freeze for Cases<Elim>where
<Elim as PackedElim>::StoneGolem: Freeze,
<Elim as PackedElim>::Treant: Freeze,
<Elim as PackedElim>::ClayGolem: Freeze,
<Elim as PackedElim>::WoodGolem: Freeze,
<Elim as PackedElim>::CoralGolem: Freeze,
<Elim as PackedElim>::Gravewarden: Freeze,
<Elim as PackedElim>::AncientEffigy: Freeze,
<Elim as PackedElim>::Mogwai: Freeze,
<Elim as PackedElim>::IronGolem: Freeze,
impl<Elim> RefUnwindSafe for Cases<Elim>where
<Elim as PackedElim>::StoneGolem: RefUnwindSafe,
<Elim as PackedElim>::Treant: RefUnwindSafe,
<Elim as PackedElim>::ClayGolem: RefUnwindSafe,
<Elim as PackedElim>::WoodGolem: RefUnwindSafe,
<Elim as PackedElim>::CoralGolem: RefUnwindSafe,
<Elim as PackedElim>::Gravewarden: RefUnwindSafe,
<Elim as PackedElim>::AncientEffigy: RefUnwindSafe,
<Elim as PackedElim>::Mogwai: RefUnwindSafe,
<Elim as PackedElim>::IronGolem: RefUnwindSafe,
impl<Elim> Send for Cases<Elim>where
<Elim as PackedElim>::StoneGolem: Send,
<Elim as PackedElim>::Treant: Send,
<Elim as PackedElim>::ClayGolem: Send,
<Elim as PackedElim>::WoodGolem: Send,
<Elim as PackedElim>::CoralGolem: Send,
<Elim as PackedElim>::Gravewarden: Send,
<Elim as PackedElim>::AncientEffigy: Send,
<Elim as PackedElim>::Mogwai: Send,
<Elim as PackedElim>::IronGolem: Send,
impl<Elim> Sync for Cases<Elim>where
<Elim as PackedElim>::StoneGolem: Sync,
<Elim as PackedElim>::Treant: Sync,
<Elim as PackedElim>::ClayGolem: Sync,
<Elim as PackedElim>::WoodGolem: Sync,
<Elim as PackedElim>::CoralGolem: Sync,
<Elim as PackedElim>::Gravewarden: Sync,
<Elim as PackedElim>::AncientEffigy: Sync,
<Elim as PackedElim>::Mogwai: Sync,
<Elim as PackedElim>::IronGolem: Sync,
impl<Elim> Unpin for Cases<Elim>where
<Elim as PackedElim>::StoneGolem: Unpin,
<Elim as PackedElim>::Treant: Unpin,
<Elim as PackedElim>::ClayGolem: Unpin,
<Elim as PackedElim>::WoodGolem: Unpin,
<Elim as PackedElim>::CoralGolem: Unpin,
<Elim as PackedElim>::Gravewarden: Unpin,
<Elim as PackedElim>::AncientEffigy: Unpin,
<Elim as PackedElim>::Mogwai: Unpin,
<Elim as PackedElim>::IronGolem: Unpin,
impl<Elim> UnwindSafe for Cases<Elim>where
<Elim as PackedElim>::StoneGolem: UnwindSafe,
<Elim as PackedElim>::Treant: UnwindSafe,
<Elim as PackedElim>::ClayGolem: UnwindSafe,
<Elim as PackedElim>::WoodGolem: UnwindSafe,
<Elim as PackedElim>::CoralGolem: UnwindSafe,
<Elim as PackedElim>::Gravewarden: UnwindSafe,
<Elim as PackedElim>::AncientEffigy: UnwindSafe,
<Elim as PackedElim>::Mogwai: UnwindSafe,
<Elim as PackedElim>::IronGolem: 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