Struct veloren_common::terrain::block::block_kind::Cases
source · pub struct Cases<Elim: PackedElim> {Show 18 fields
pub Air: Elim::Air,
pub Water: Elim::Water,
pub Rock: Elim::Rock,
pub WeakRock: Elim::WeakRock,
pub Lava: Elim::Lava,
pub GlowingRock: Elim::GlowingRock,
pub GlowingWeakRock: Elim::GlowingWeakRock,
pub Grass: Elim::Grass,
pub Snow: Elim::Snow,
pub ArtSnow: Elim::ArtSnow,
pub Earth: Elim::Earth,
pub Sand: Elim::Sand,
pub Wood: Elim::Wood,
pub Leaves: Elim::Leaves,
pub GlowingMushroom: Elim::GlowingMushroom,
pub Ice: Elim::Ice,
pub ArtLeaves: Elim::ArtLeaves,
pub Misc: Elim::Misc,
}
Fields§
§Air: Elim::Air
§Water: Elim::Water
§Rock: Elim::Rock
§WeakRock: Elim::WeakRock
§Lava: Elim::Lava
§GlowingRock: Elim::GlowingRock
§GlowingWeakRock: Elim::GlowingWeakRock
§Grass: Elim::Grass
§Snow: Elim::Snow
§ArtSnow: Elim::ArtSnow
§Earth: Elim::Earth
§Sand: Elim::Sand
§Wood: Elim::Wood
§Leaves: Elim::Leaves
§GlowingMushroom: Elim::GlowingMushroom
§Ice: Elim::Ice
§ArtLeaves: Elim::ArtLeaves
§Misc: Elim::Misc
Trait Implementations§
source§impl<'de, Elim: PackedElim> Deserialize<'de> for Cases<Elim>where
Elim::Air: Deserialize<'de>,
Elim::Water: Deserialize<'de>,
Elim::Rock: Deserialize<'de>,
Elim::WeakRock: Deserialize<'de>,
Elim::Lava: Deserialize<'de>,
Elim::GlowingRock: Deserialize<'de>,
Elim::GlowingWeakRock: Deserialize<'de>,
Elim::Grass: Deserialize<'de>,
Elim::Snow: Deserialize<'de>,
Elim::ArtSnow: Deserialize<'de>,
Elim::Earth: Deserialize<'de>,
Elim::Sand: Deserialize<'de>,
Elim::Wood: Deserialize<'de>,
Elim::Leaves: Deserialize<'de>,
Elim::GlowingMushroom: Deserialize<'de>,
Elim::Ice: Deserialize<'de>,
Elim::ArtLeaves: Deserialize<'de>,
Elim::Misc: Deserialize<'de>,
impl<'de, Elim: PackedElim> Deserialize<'de> for Cases<Elim>where
Elim::Air: Deserialize<'de>,
Elim::Water: Deserialize<'de>,
Elim::Rock: Deserialize<'de>,
Elim::WeakRock: Deserialize<'de>,
Elim::Lava: Deserialize<'de>,
Elim::GlowingRock: Deserialize<'de>,
Elim::GlowingWeakRock: Deserialize<'de>,
Elim::Grass: Deserialize<'de>,
Elim::Snow: Deserialize<'de>,
Elim::ArtSnow: Deserialize<'de>,
Elim::Earth: Deserialize<'de>,
Elim::Sand: Deserialize<'de>,
Elim::Wood: Deserialize<'de>,
Elim::Leaves: Deserialize<'de>,
Elim::GlowingMushroom: Deserialize<'de>,
Elim::Ice: Deserialize<'de>,
Elim::ArtLeaves: Deserialize<'de>,
Elim::Misc: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<Elim: PackedElim> Serialize for Cases<Elim>where
Elim::Air: Serialize,
Elim::Water: Serialize,
Elim::Rock: Serialize,
Elim::WeakRock: Serialize,
Elim::Lava: Serialize,
Elim::GlowingRock: Serialize,
Elim::GlowingWeakRock: Serialize,
Elim::Grass: Serialize,
Elim::Snow: Serialize,
Elim::ArtSnow: Serialize,
Elim::Earth: Serialize,
Elim::Sand: Serialize,
Elim::Wood: Serialize,
Elim::Leaves: Serialize,
Elim::GlowingMushroom: Serialize,
Elim::Ice: Serialize,
Elim::ArtLeaves: Serialize,
Elim::Misc: Serialize,
impl<Elim: PackedElim> Serialize for Cases<Elim>where
Elim::Air: Serialize,
Elim::Water: Serialize,
Elim::Rock: Serialize,
Elim::WeakRock: Serialize,
Elim::Lava: Serialize,
Elim::GlowingRock: Serialize,
Elim::GlowingWeakRock: Serialize,
Elim::Grass: Serialize,
Elim::Snow: Serialize,
Elim::ArtSnow: Serialize,
Elim::Earth: Serialize,
Elim::Sand: Serialize,
Elim::Wood: Serialize,
Elim::Leaves: Serialize,
Elim::GlowingMushroom: Serialize,
Elim::Ice: Serialize,
Elim::ArtLeaves: Serialize,
Elim::Misc: Serialize,
source§impl<'a, 'b, Elim: PackedElim, Context, Type, S> Typed<((&'a BlockKind,), Context), Type, S> for &'b ElimCase<Cases<Elim>>where
&'b Elim::Air: Typed<Context, Type, S>,
&'b Elim::Water: Typed<Context, Type, S>,
&'b Elim::Rock: Typed<Context, Type, S>,
&'b Elim::WeakRock: Typed<Context, Type, S>,
&'b Elim::Lava: Typed<Context, Type, S>,
&'b Elim::GlowingRock: Typed<Context, Type, S>,
&'b Elim::GlowingWeakRock: Typed<Context, Type, S>,
&'b Elim::Grass: Typed<Context, Type, S>,
&'b Elim::Snow: Typed<Context, Type, S>,
&'b Elim::ArtSnow: Typed<Context, Type, S>,
&'b Elim::Earth: Typed<Context, Type, S>,
&'b Elim::Sand: Typed<Context, Type, S>,
&'b Elim::Wood: Typed<Context, Type, S>,
&'b Elim::Leaves: Typed<Context, Type, S>,
&'b Elim::GlowingMushroom: Typed<Context, Type, S>,
&'b Elim::Ice: Typed<Context, Type, S>,
&'b Elim::ArtLeaves: Typed<Context, Type, S>,
&'b Elim::Misc: Typed<Context, Type, S>,
impl<'a, 'b, Elim: PackedElim, Context, Type, S> Typed<((&'a BlockKind,), Context), Type, S> for &'b ElimCase<Cases<Elim>>where
&'b Elim::Air: Typed<Context, Type, S>,
&'b Elim::Water: Typed<Context, Type, S>,
&'b Elim::Rock: Typed<Context, Type, S>,
&'b Elim::WeakRock: Typed<Context, Type, S>,
&'b Elim::Lava: Typed<Context, Type, S>,
&'b Elim::GlowingRock: Typed<Context, Type, S>,
&'b Elim::GlowingWeakRock: Typed<Context, Type, S>,
&'b Elim::Grass: Typed<Context, Type, S>,
&'b Elim::Snow: Typed<Context, Type, S>,
&'b Elim::ArtSnow: Typed<Context, Type, S>,
&'b Elim::Earth: Typed<Context, Type, S>,
&'b Elim::Sand: Typed<Context, Type, S>,
&'b Elim::Wood: Typed<Context, Type, S>,
&'b Elim::Leaves: Typed<Context, Type, S>,
&'b Elim::GlowingMushroom: Typed<Context, Type, S>,
&'b Elim::Ice: Typed<Context, Type, S>,
&'b Elim::ArtLeaves: Typed<Context, Type, S>,
&'b Elim::Misc: Typed<Context, Type, S>,
Auto Trait Implementations§
impl<Elim> Freeze for Cases<Elim>where
<Elim as PackedElim>::Air: Freeze,
<Elim as PackedElim>::Water: Freeze,
<Elim as PackedElim>::Rock: Freeze,
<Elim as PackedElim>::WeakRock: Freeze,
<Elim as PackedElim>::Lava: Freeze,
<Elim as PackedElim>::GlowingRock: Freeze,
<Elim as PackedElim>::GlowingWeakRock: Freeze,
<Elim as PackedElim>::Grass: Freeze,
<Elim as PackedElim>::Snow: Freeze,
<Elim as PackedElim>::ArtSnow: Freeze,
<Elim as PackedElim>::Earth: Freeze,
<Elim as PackedElim>::Sand: Freeze,
<Elim as PackedElim>::Wood: Freeze,
<Elim as PackedElim>::Leaves: Freeze,
<Elim as PackedElim>::GlowingMushroom: Freeze,
<Elim as PackedElim>::Ice: Freeze,
<Elim as PackedElim>::ArtLeaves: Freeze,
<Elim as PackedElim>::Misc: Freeze,
impl<Elim> RefUnwindSafe for Cases<Elim>where
<Elim as PackedElim>::Air: RefUnwindSafe,
<Elim as PackedElim>::Water: RefUnwindSafe,
<Elim as PackedElim>::Rock: RefUnwindSafe,
<Elim as PackedElim>::WeakRock: RefUnwindSafe,
<Elim as PackedElim>::Lava: RefUnwindSafe,
<Elim as PackedElim>::GlowingRock: RefUnwindSafe,
<Elim as PackedElim>::GlowingWeakRock: RefUnwindSafe,
<Elim as PackedElim>::Grass: RefUnwindSafe,
<Elim as PackedElim>::Snow: RefUnwindSafe,
<Elim as PackedElim>::ArtSnow: RefUnwindSafe,
<Elim as PackedElim>::Earth: RefUnwindSafe,
<Elim as PackedElim>::Sand: RefUnwindSafe,
<Elim as PackedElim>::Wood: RefUnwindSafe,
<Elim as PackedElim>::Leaves: RefUnwindSafe,
<Elim as PackedElim>::GlowingMushroom: RefUnwindSafe,
<Elim as PackedElim>::Ice: RefUnwindSafe,
<Elim as PackedElim>::ArtLeaves: RefUnwindSafe,
<Elim as PackedElim>::Misc: RefUnwindSafe,
impl<Elim> Send for Cases<Elim>where
<Elim as PackedElim>::Air: Send,
<Elim as PackedElim>::Water: Send,
<Elim as PackedElim>::Rock: Send,
<Elim as PackedElim>::WeakRock: Send,
<Elim as PackedElim>::Lava: Send,
<Elim as PackedElim>::GlowingRock: Send,
<Elim as PackedElim>::GlowingWeakRock: Send,
<Elim as PackedElim>::Grass: Send,
<Elim as PackedElim>::Snow: Send,
<Elim as PackedElim>::ArtSnow: Send,
<Elim as PackedElim>::Earth: Send,
<Elim as PackedElim>::Sand: Send,
<Elim as PackedElim>::Wood: Send,
<Elim as PackedElim>::Leaves: Send,
<Elim as PackedElim>::GlowingMushroom: Send,
<Elim as PackedElim>::Ice: Send,
<Elim as PackedElim>::ArtLeaves: Send,
<Elim as PackedElim>::Misc: Send,
impl<Elim> Sync for Cases<Elim>where
<Elim as PackedElim>::Air: Sync,
<Elim as PackedElim>::Water: Sync,
<Elim as PackedElim>::Rock: Sync,
<Elim as PackedElim>::WeakRock: Sync,
<Elim as PackedElim>::Lava: Sync,
<Elim as PackedElim>::GlowingRock: Sync,
<Elim as PackedElim>::GlowingWeakRock: Sync,
<Elim as PackedElim>::Grass: Sync,
<Elim as PackedElim>::Snow: Sync,
<Elim as PackedElim>::ArtSnow: Sync,
<Elim as PackedElim>::Earth: Sync,
<Elim as PackedElim>::Sand: Sync,
<Elim as PackedElim>::Wood: Sync,
<Elim as PackedElim>::Leaves: Sync,
<Elim as PackedElim>::GlowingMushroom: Sync,
<Elim as PackedElim>::Ice: Sync,
<Elim as PackedElim>::ArtLeaves: Sync,
<Elim as PackedElim>::Misc: Sync,
impl<Elim> Unpin for Cases<Elim>where
<Elim as PackedElim>::Air: Unpin,
<Elim as PackedElim>::Water: Unpin,
<Elim as PackedElim>::Rock: Unpin,
<Elim as PackedElim>::WeakRock: Unpin,
<Elim as PackedElim>::Lava: Unpin,
<Elim as PackedElim>::GlowingRock: Unpin,
<Elim as PackedElim>::GlowingWeakRock: Unpin,
<Elim as PackedElim>::Grass: Unpin,
<Elim as PackedElim>::Snow: Unpin,
<Elim as PackedElim>::ArtSnow: Unpin,
<Elim as PackedElim>::Earth: Unpin,
<Elim as PackedElim>::Sand: Unpin,
<Elim as PackedElim>::Wood: Unpin,
<Elim as PackedElim>::Leaves: Unpin,
<Elim as PackedElim>::GlowingMushroom: Unpin,
<Elim as PackedElim>::Ice: Unpin,
<Elim as PackedElim>::ArtLeaves: Unpin,
<Elim as PackedElim>::Misc: Unpin,
impl<Elim> UnwindSafe for Cases<Elim>where
<Elim as PackedElim>::Air: UnwindSafe,
<Elim as PackedElim>::Water: UnwindSafe,
<Elim as PackedElim>::Rock: UnwindSafe,
<Elim as PackedElim>::WeakRock: UnwindSafe,
<Elim as PackedElim>::Lava: UnwindSafe,
<Elim as PackedElim>::GlowingRock: UnwindSafe,
<Elim as PackedElim>::GlowingWeakRock: UnwindSafe,
<Elim as PackedElim>::Grass: UnwindSafe,
<Elim as PackedElim>::Snow: UnwindSafe,
<Elim as PackedElim>::ArtSnow: UnwindSafe,
<Elim as PackedElim>::Earth: UnwindSafe,
<Elim as PackedElim>::Sand: UnwindSafe,
<Elim as PackedElim>::Wood: UnwindSafe,
<Elim as PackedElim>::Leaves: UnwindSafe,
<Elim as PackedElim>::GlowingMushroom: UnwindSafe,
<Elim as PackedElim>::Ice: UnwindSafe,
<Elim as PackedElim>::ArtLeaves: UnwindSafe,
<Elim as PackedElim>::Misc: 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