Enum veloren_common::terrain::structure::StructureBlock
source · #[repr(u8)]pub enum StructureBlock {
Show 40 variants
None = 0,
Grass = 1,
TemperateLeaves = 2,
PineLeaves = 3,
Acacia = 4,
Mangrove = 5,
PalmLeavesInner = 6,
PalmLeavesOuter = 7,
Water = 8,
GreenSludge = 9,
Fruit = 10,
Coconut = 11,
Chest = 12,
Hollow = 13,
Liana = 14,
Normal(Rgb<u8>),
Log = 16,
Filled(BlockKind, Rgb<u8>),
Sprite(SpriteKind),
Chestnut = 19,
Baobab = 20,
BirchWood = 21,
FrostpineLeaves = 22,
RotatedSprite(SpriteKind, u8),
EntitySpawner(String, f32),
Keyhole(String),
BoneKeyhole(String),
GlassKeyhole(String),
Sign(Content, u8),
KeyholeBars(String),
HaniwaKeyhole(String),
TerracottaKeyhole(String),
SahaginKeyhole(String),
VampireKeyhole(String),
MyrmidonKeyhole(String),
MinotaurKeyhole(String),
MapleLeaves = 36,
CherryLeaves = 37,
AutumnLeaves = 38,
RedwoodWood = 39,
}
Variants§
None = 0
Grass = 1
TemperateLeaves = 2
PineLeaves = 3
Acacia = 4
Mangrove = 5
PalmLeavesInner = 6
PalmLeavesOuter = 7
Water = 8
GreenSludge = 9
Fruit = 10
Coconut = 11
Chest = 12
Hollow = 13
Liana = 14
Normal(Rgb<u8>)
Log = 16
Filled(BlockKind, Rgb<u8>)
Sprite(SpriteKind)
Chestnut = 19
Baobab = 20
BirchWood = 21
FrostpineLeaves = 22
RotatedSprite(SpriteKind, u8)
EntitySpawner(String, f32)
Keyhole(String)
BoneKeyhole(String)
GlassKeyhole(String)
Sign(Content, u8)
KeyholeBars(String)
HaniwaKeyhole(String)
TerracottaKeyhole(String)
SahaginKeyhole(String)
VampireKeyhole(String)
MyrmidonKeyhole(String)
MinotaurKeyhole(String)
MapleLeaves = 36
CherryLeaves = 37
AutumnLeaves = 38
RedwoodWood = 39
Implementations§
source§impl StructureBlock
impl StructureBlock
pub fn elim<'a, Elim, Context, S, Type>(
&'a self,
elim: Elim,
context: Context,
) -> (Type, S)where
Elim: Typed<((&'a StructureBlock,), Context), Type, S>,
pub fn elim_case_pure<'a, Type>(&self, cases: &'a PureCases<Type>) -> &'a Type
pub fn elim_case_weak<'a, 'b, Type>(
&'a self,
cases: &'b ElimWeak<Self, Type>,
) -> &'b Typewhere
WeakHead<Pure<Type>, Type>: SynthTyped<(), Type> + SynthTyped<((BlockKind, Rgb<u8>), ()), Type> + SynthTyped<((SpriteKind, u8), ()), Type> + SynthTyped<((String, f32), ()), Type> + SynthTyped<((Content, u8), ()), Type>,
WeakHead<Rgb<u8>, Type>: SynthTyped<((Rgb<u8>,), ()), Type>,
WeakHead<SpriteKind, Type>: SynthTyped<((SpriteKind,), ()), Type>,
WeakHead<String, Type>: SynthTyped<((String,), ()), Type>,
&'b ElimWeak<Self, Type>: Typed<((&'a StructureBlock,), ()), &'b Type, ()>,
Trait Implementations§
source§impl Clone for StructureBlock
impl Clone for StructureBlock
source§fn clone(&self) -> StructureBlock
fn clone(&self) -> StructureBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StructureBlock
impl Debug for StructureBlock
source§impl Default for StructureBlock
impl Default for StructureBlock
source§impl<'de> Deserialize<'de> for StructureBlock
impl<'de> Deserialize<'de> for StructureBlock
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<Target> PackedElim for WeakHead<StructureBlock, Target>where
WeakHead<Pure<Target>, Target>: SynthTyped<(), Target> + SynthTyped<((BlockKind, Rgb<u8>), ()), Target> + SynthTyped<((SpriteKind, u8), ()), Target> + SynthTyped<((String, f32), ()), Target> + SynthTyped<((Content, u8), ()), Target>,
WeakHead<Rgb<u8>, Target>: SynthTyped<((Rgb<u8>,), ()), Target>,
WeakHead<SpriteKind, Target>: SynthTyped<((SpriteKind,), ()), Target>,
WeakHead<String, Target>: SynthTyped<((String,), ()), Target>,
impl<Target> PackedElim for WeakHead<StructureBlock, Target>where
WeakHead<Pure<Target>, Target>: SynthTyped<(), Target> + SynthTyped<((BlockKind, Rgb<u8>), ()), Target> + SynthTyped<((SpriteKind, u8), ()), Target> + SynthTyped<((String, f32), ()), Target> + SynthTyped<((Content, u8), ()), Target>,
WeakHead<Rgb<u8>, Target>: SynthTyped<((Rgb<u8>,), ()), Target>,
WeakHead<SpriteKind, Target>: SynthTyped<((SpriteKind,), ()), Target>,
WeakHead<String, Target>: SynthTyped<((String,), ()), Target>,
type None = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Grass = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type TemperateLeaves = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type PineLeaves = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Acacia = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Mangrove = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type PalmLeavesInner = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type PalmLeavesOuter = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Water = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type GreenSludge = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Fruit = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Coconut = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Chest = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Hollow = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Liana = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Normal = <WeakHead<Rgb<u8>, Target> as SynthTyped<((Rgb<u8>,), ()), Target>>::Expr
type Log = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Filled = <WeakHead<Pure<Target>, Target> as SynthTyped<((BlockKind, Rgb<u8>), ()), Target>>::Expr
type Sprite = <WeakHead<SpriteKind, Target> as SynthTyped<((SpriteKind,), ()), Target>>::Expr
type Chestnut = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type Baobab = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type BirchWood = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type FrostpineLeaves = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type RotatedSprite = <WeakHead<Pure<Target>, Target> as SynthTyped<((SpriteKind, u8), ()), Target>>::Expr
type EntitySpawner = <WeakHead<Pure<Target>, Target> as SynthTyped<((String, f32), ()), Target>>::Expr
type Keyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type BoneKeyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type GlassKeyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type Sign = <WeakHead<Pure<Target>, Target> as SynthTyped<((Content, u8), ()), Target>>::Expr
type KeyholeBars = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type HaniwaKeyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type TerracottaKeyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type SahaginKeyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type VampireKeyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type MyrmidonKeyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type MinotaurKeyhole = <WeakHead<String, Target> as SynthTyped<((String,), ()), Target>>::Expr
type MapleLeaves = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type CherryLeaves = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type AutumnLeaves = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
type RedwoodWood = <WeakHead<Pure<Target>, Target> as SynthTyped<(), Target>>::Expr
source§impl PartialEq for StructureBlock
impl PartialEq for StructureBlock
source§fn eq(&self, other: &StructureBlock) -> bool
fn eq(&self, other: &StructureBlock) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Context, Target> SynthTyped<((StructureBlock,), Context), Target> for WeakHead<StructureBlock, Target>where
WeakHead<Pure<Target>, Target>: SynthTyped<(), Target> + SynthTyped<((BlockKind, Rgb<u8>), ()), Target> + SynthTyped<((SpriteKind, u8), ()), Target> + SynthTyped<((String, f32), ()), Target> + SynthTyped<((Content, u8), ()), Target>,
WeakHead<Rgb<u8>, Target>: SynthTyped<((Rgb<u8>,), ()), Target>,
WeakHead<SpriteKind, Target>: SynthTyped<((SpriteKind,), ()), Target>,
WeakHead<String, Target>: SynthTyped<((String,), ()), Target>,
impl<Context, Target> SynthTyped<((StructureBlock,), Context), Target> for WeakHead<StructureBlock, Target>where
WeakHead<Pure<Target>, Target>: SynthTyped<(), Target> + SynthTyped<((BlockKind, Rgb<u8>), ()), Target> + SynthTyped<((SpriteKind, u8), ()), Target> + SynthTyped<((String, f32), ()), Target> + SynthTyped<((Content, u8), ()), Target>,
WeakHead<Rgb<u8>, Target>: SynthTyped<((Rgb<u8>,), ()), Target>,
WeakHead<SpriteKind, Target>: SynthTyped<((SpriteKind,), ()), Target>,
WeakHead<String, Target>: SynthTyped<((String,), ()), Target>,
impl StructuralPartialEq for StructureBlock
Auto Trait Implementations§
impl Freeze for StructureBlock
impl RefUnwindSafe for StructureBlock
impl Send for StructureBlock
impl Sync for StructureBlock
impl Unpin for StructureBlock
impl UnwindSafe for StructureBlock
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§impl<T> Pointable for T
impl<T> Pointable for T
source§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.