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

source

pub fn elim<'a, Elim, Context, S, Type>( &'a self, elim: Elim, context: Context, ) -> (Type, S)
where Elim: Typed<((&'a StructureBlock,), Context), Type, S>,

source

pub fn elim_case_pure<'a, Type>(&self, cases: &'a PureCases<Type>) -> &'a Type

source

pub fn elim_case_weak<'a, 'b, Type>( &'a self, cases: &'b ElimWeak<Self, Type>, ) -> &'b Type
where 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

source§

fn clone(&self) -> StructureBlock

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StructureBlock

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StructureBlock

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for StructureBlock

source§

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>,

§

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

source§

fn eq(&self, other: &StructureBlock) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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>,

source§

impl StructuralPartialEq for StructureBlock

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<Context> SubContext<Context> for Context

source§

fn sub_context(self) -> Context

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> TryDefault for T
where T: Default,

§

fn try_default() -> Result<T, String>

Tries to create the default.
§

fn unwrap_default() -> Self

Calls try_default and panics on an error case.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Event for T
where T: Send + Sync + 'static,

§

impl<T> Resource for T
where T: Any + Send + Sync,

§

impl<T> Storable for T
where T: Send + Sync + 'static,