Skip to main content

MerchantOffer

Struct MerchantOffer 

Source
pub struct MerchantOffer {
    pub base_cost_a: ItemCost,
    pub result: ItemStack,
    pub cost_b: Option<ItemCost>,
    pub out_of_stock: bool,
    pub uses: i32,
    pub max_uses: i32,
    pub xp: i32,
    pub special_price_diff: i32,
    pub price_multiplier: f32,
    pub demand: i32,
}

Fields§

§base_cost_a: ItemCost§result: ItemStack§cost_b: Option<ItemCost>§out_of_stock: bool§uses: i32§max_uses: i32§xp: i32§special_price_diff: i32§price_multiplier: f32§demand: i32

Trait Implementations§

Source§

impl AzBuf for MerchantOffer

Source§

fn azalea_write(&self, ctx: Ctx<'_>, buf: &mut impl Write) -> Result<()>

Source§

fn azalea_read( ctx: Ctx<'_>, buf: &mut Cursor<&[u8]>, ) -> Result<Self, BufReadError>

Source§

impl Clone for MerchantOffer

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MerchantOffer

Source§

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

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

impl PartialEq for MerchantOffer

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MerchantOffer

Auto Trait Implementations§

§

impl Forget for MerchantOffer

§

impl Freeze for MerchantOffer

§

impl Move for MerchantOffer

§

impl RefUnwindSafe for MerchantOffer

§

impl Send for MerchantOffer
where RawVecInner: Send, BoxRaw<CustomData>: Send, BoxRaw<MaxStackSize>: Send, BoxRaw<MaxDamage>: Send, BoxRaw<Damage>: Send, BoxRaw<Unbreakable>: Send, BoxRaw<CustomName>: Send, BoxRaw<ItemName>: Send, BoxRaw<ItemModel>: Send, BoxRaw<Lore>: Send, BoxRaw<Rarity>: Send, BoxRaw<Enchantments>: Send, BoxRaw<CanPlaceOn>: Send, BoxRaw<CanBreak>: Send, BoxRaw<AttributeModifiers>: Send, BoxRaw<CustomModelData>: Send, BoxRaw<TooltipDisplay>: Send, BoxRaw<RepairCost>: Send, BoxRaw<CreativeSlotLock>: Send, BoxRaw<EnchantmentGlintOverride>: Send, BoxRaw<IntangibleProjectile>: Send, BoxRaw<Food>: Send, BoxRaw<Consumable>: Send, BoxRaw<UseRemainder>: Send, BoxRaw<UseCooldown>: Send, BoxRaw<DamageResistant>: Send, BoxRaw<Tool>: Send, BoxRaw<Weapon>: Send, BoxRaw<Enchantable>: Send, BoxRaw<Equippable>: Send, BoxRaw<Repairable>: Send, BoxRaw<Glider>: Send, BoxRaw<TooltipStyle>: Send, BoxRaw<DeathProtection>: Send, BoxRaw<BlocksAttacks>: Send, BoxRaw<StoredEnchantments>: Send, BoxRaw<DyedColor>: Send, BoxRaw<MapId>: Send, BoxRaw<MapDecorations>: Send, BoxRaw<MapPostProcessing>: Send, BoxRaw<ChargedProjectiles>: Send, BoxRaw<BundleContents>: Send, BoxRaw<PotionContents>: Send, BoxRaw<PotionDurationScale>: Send, BoxRaw<SuspiciousStewEffects>: Send, BoxRaw<WritableBookContent>: Send, BoxRaw<WrittenBookContent>: Send, BoxRaw<Trim>: Send, BoxRaw<DebugStickState>: Send, BoxRaw<EntityData>: Send, BoxRaw<BucketEntityData>: Send, BoxRaw<BlockEntityData>: Send, BoxRaw<Instrument>: Send, BoxRaw<ProvidesTrimMaterial>: Send, BoxRaw<OminousBottleAmplifier>: Send, BoxRaw<JukeboxPlayable>: Send, BoxRaw<ProvidesBannerPatterns>: Send, BoxRaw<Recipes>: Send, BoxRaw<LodestoneTracker>: Send, BoxRaw<FireworkExplosion>: Send, BoxRaw<Fireworks>: Send, BoxRaw<Profile>: Send, BoxRaw<NoteBlockSound>: Send, BoxRaw<BannerPatterns>: Send, BoxRaw<BaseColor>: Send, BoxRaw<PotDecorations>: Send, BoxRaw<Container>: Send, BoxRaw<BlockState>: Send, BoxRaw<Bees>: Send, BoxRaw<Lock>: Send, BoxRaw<ContainerLoot>: Send, BoxRaw<BreakSound>: Send, BoxRaw<VillagerVariant>: Send, BoxRaw<WolfVariant>: Send, BoxRaw<WolfSoundVariant>: Send, BoxRaw<WolfCollar>: Send, BoxRaw<FoxVariant>: Send, BoxRaw<SalmonSize>: Send, BoxRaw<ParrotVariant>: Send, BoxRaw<TropicalFishPattern>: Send, BoxRaw<TropicalFishBaseColor>: Send, BoxRaw<TropicalFishPatternColor>: Send, BoxRaw<MooshroomVariant>: Send, BoxRaw<RabbitVariant>: Send, BoxRaw<PigVariant>: Send, BoxRaw<CowVariant>: Send, BoxRaw<ChickenVariant>: Send, BoxRaw<FrogVariant>: Send, BoxRaw<HorseVariant>: Send, BoxRaw<PaintingVariant>: Send, BoxRaw<LlamaVariant>: Send, BoxRaw<AxolotlVariant>: Send, BoxRaw<CatVariant>: Send, BoxRaw<CatCollar>: Send, BoxRaw<SheepColor>: Send, BoxRaw<ShulkerColor>: Send, BoxRaw<UseEffects>: Send, BoxRaw<MinimumAttackCharge>: Send, BoxRaw<DamageType>: Send, BoxRaw<PiercingWeapon>: Send, BoxRaw<KineticWeapon>: Send, BoxRaw<ZombieNautilusVariant>: Send, BoxRaw<AttackRange>: Send, BoxRaw<AdditionalTradeCost>: Send, BoxRaw<Dye>: Send, BoxRaw<PigSoundVariant>: Send, BoxRaw<CowSoundVariant>: Send, BoxRaw<ChickenSoundVariant>: Send, BoxRaw<CatSoundVariant>: Send, BoxRaw<SulfurCubeContent>: Send, BoxRaw<BlockTransformer>: Send, BoxRaw<ProvidesPotteryPattern>: Send, BoxRaw<AttackAnimation>: Send, BoxRaw<InteractAnimation>: Send, BoxRaw<VillagerFood>: Send, BoxRaw<Compostable>: Send, BoxRaw<CookingFuel>: Send, BoxRaw<BrewingFuel>: Send, BoxRaw<MobVisibility>: Send, BoxRaw<SignTextFront>: Send, BoxRaw<SignTextBack>: Send, BoxRaw<Waxed>: Send, BoxRaw<CushionColor>: Send, BoxRaw<IndexMap<DataComponentKind, Option<DataComponent>>>: Send,

§

impl Sync for MerchantOffer
where RawVecInner: Sync, BoxRaw<CustomData>: Sync, BoxRaw<MaxStackSize>: Sync, BoxRaw<MaxDamage>: Sync, BoxRaw<Damage>: Sync, BoxRaw<Unbreakable>: Sync, BoxRaw<CustomName>: Sync, BoxRaw<ItemName>: Sync, BoxRaw<ItemModel>: Sync, BoxRaw<Lore>: Sync, BoxRaw<Rarity>: Sync, BoxRaw<Enchantments>: Sync, BoxRaw<CanPlaceOn>: Sync, BoxRaw<CanBreak>: Sync, BoxRaw<AttributeModifiers>: Sync, BoxRaw<CustomModelData>: Sync, BoxRaw<TooltipDisplay>: Sync, BoxRaw<RepairCost>: Sync, BoxRaw<CreativeSlotLock>: Sync, BoxRaw<EnchantmentGlintOverride>: Sync, BoxRaw<IntangibleProjectile>: Sync, BoxRaw<Food>: Sync, BoxRaw<Consumable>: Sync, BoxRaw<UseRemainder>: Sync, BoxRaw<UseCooldown>: Sync, BoxRaw<DamageResistant>: Sync, BoxRaw<Tool>: Sync, BoxRaw<Weapon>: Sync, BoxRaw<Enchantable>: Sync, BoxRaw<Equippable>: Sync, BoxRaw<Repairable>: Sync, BoxRaw<Glider>: Sync, BoxRaw<TooltipStyle>: Sync, BoxRaw<DeathProtection>: Sync, BoxRaw<BlocksAttacks>: Sync, BoxRaw<StoredEnchantments>: Sync, BoxRaw<DyedColor>: Sync, BoxRaw<MapId>: Sync, BoxRaw<MapDecorations>: Sync, BoxRaw<MapPostProcessing>: Sync, BoxRaw<ChargedProjectiles>: Sync, BoxRaw<BundleContents>: Sync, BoxRaw<PotionContents>: Sync, BoxRaw<PotionDurationScale>: Sync, BoxRaw<SuspiciousStewEffects>: Sync, BoxRaw<WritableBookContent>: Sync, BoxRaw<WrittenBookContent>: Sync, BoxRaw<Trim>: Sync, BoxRaw<DebugStickState>: Sync, BoxRaw<EntityData>: Sync, BoxRaw<BucketEntityData>: Sync, BoxRaw<BlockEntityData>: Sync, BoxRaw<Instrument>: Sync, BoxRaw<ProvidesTrimMaterial>: Sync, BoxRaw<OminousBottleAmplifier>: Sync, BoxRaw<JukeboxPlayable>: Sync, BoxRaw<ProvidesBannerPatterns>: Sync, BoxRaw<Recipes>: Sync, BoxRaw<LodestoneTracker>: Sync, BoxRaw<FireworkExplosion>: Sync, BoxRaw<Fireworks>: Sync, BoxRaw<Profile>: Sync, BoxRaw<NoteBlockSound>: Sync, BoxRaw<BannerPatterns>: Sync, BoxRaw<BaseColor>: Sync, BoxRaw<PotDecorations>: Sync, BoxRaw<Container>: Sync, BoxRaw<BlockState>: Sync, BoxRaw<Bees>: Sync, BoxRaw<Lock>: Sync, BoxRaw<ContainerLoot>: Sync, BoxRaw<BreakSound>: Sync, BoxRaw<VillagerVariant>: Sync, BoxRaw<WolfVariant>: Sync, BoxRaw<WolfSoundVariant>: Sync, BoxRaw<WolfCollar>: Sync, BoxRaw<FoxVariant>: Sync, BoxRaw<SalmonSize>: Sync, BoxRaw<ParrotVariant>: Sync, BoxRaw<TropicalFishPattern>: Sync, BoxRaw<TropicalFishBaseColor>: Sync, BoxRaw<TropicalFishPatternColor>: Sync, BoxRaw<MooshroomVariant>: Sync, BoxRaw<RabbitVariant>: Sync, BoxRaw<PigVariant>: Sync, BoxRaw<CowVariant>: Sync, BoxRaw<ChickenVariant>: Sync, BoxRaw<FrogVariant>: Sync, BoxRaw<HorseVariant>: Sync, BoxRaw<PaintingVariant>: Sync, BoxRaw<LlamaVariant>: Sync, BoxRaw<AxolotlVariant>: Sync, BoxRaw<CatVariant>: Sync, BoxRaw<CatCollar>: Sync, BoxRaw<SheepColor>: Sync, BoxRaw<ShulkerColor>: Sync, BoxRaw<UseEffects>: Sync, BoxRaw<MinimumAttackCharge>: Sync, BoxRaw<DamageType>: Sync, BoxRaw<PiercingWeapon>: Sync, BoxRaw<KineticWeapon>: Sync, BoxRaw<ZombieNautilusVariant>: Sync, BoxRaw<AttackRange>: Sync, BoxRaw<AdditionalTradeCost>: Sync, BoxRaw<Dye>: Sync, BoxRaw<PigSoundVariant>: Sync, BoxRaw<CowSoundVariant>: Sync, BoxRaw<ChickenSoundVariant>: Sync, BoxRaw<CatSoundVariant>: Sync, BoxRaw<SulfurCubeContent>: Sync, BoxRaw<BlockTransformer>: Sync, BoxRaw<ProvidesPotteryPattern>: Sync, BoxRaw<AttackAnimation>: Sync, BoxRaw<InteractAnimation>: Sync, BoxRaw<VillagerFood>: Sync, BoxRaw<Compostable>: Sync, BoxRaw<CookingFuel>: Sync, BoxRaw<BrewingFuel>: Sync, BoxRaw<MobVisibility>: Sync, BoxRaw<SignTextFront>: Sync, BoxRaw<SignTextBack>: Sync, BoxRaw<Waxed>: Sync, BoxRaw<CushionColor>: Sync, BoxRaw<IndexMap<DataComponentKind, Option<DataComponent>>>: Sync,

§

impl Unpin for MerchantOffer
where *const u8 is !null: Unpin, Box<CustomData>: Unpin, Box<MaxStackSize>: Unpin, Box<MaxDamage>: Unpin, Box<Damage>: Unpin, Box<Unbreakable>: Unpin, Box<CustomName>: Unpin, Box<ItemName>: Unpin, Box<ItemModel>: Unpin, Box<Lore>: Unpin, Box<Rarity>: Unpin, Box<Enchantments>: Unpin, Box<CanPlaceOn>: Unpin, Box<CanBreak>: Unpin, Box<AttributeModifiers>: Unpin, Box<CustomModelData>: Unpin, Box<TooltipDisplay>: Unpin, Box<RepairCost>: Unpin, Box<CreativeSlotLock>: Unpin, Box<EnchantmentGlintOverride>: Unpin, Box<IntangibleProjectile>: Unpin, Box<Food>: Unpin, Box<Consumable>: Unpin, Box<UseRemainder>: Unpin, Box<UseCooldown>: Unpin, Box<DamageResistant>: Unpin, Box<Tool>: Unpin, Box<Weapon>: Unpin, Box<Enchantable>: Unpin, Box<Equippable>: Unpin, Box<Repairable>: Unpin, Box<Glider>: Unpin, Box<TooltipStyle>: Unpin, Box<DeathProtection>: Unpin, Box<BlocksAttacks>: Unpin, Box<StoredEnchantments>: Unpin, Box<DyedColor>: Unpin, Box<MapId>: Unpin, Box<MapDecorations>: Unpin, Box<MapPostProcessing>: Unpin, Box<ChargedProjectiles>: Unpin, Box<BundleContents>: Unpin, Box<PotionContents>: Unpin, Box<PotionDurationScale>: Unpin, Box<SuspiciousStewEffects>: Unpin, Box<WritableBookContent>: Unpin, Box<WrittenBookContent>: Unpin, Box<Trim>: Unpin, Box<DebugStickState>: Unpin, Box<EntityData>: Unpin, Box<BucketEntityData>: Unpin, Box<BlockEntityData>: Unpin, Box<Instrument>: Unpin, Box<ProvidesTrimMaterial>: Unpin, Box<OminousBottleAmplifier>: Unpin, Box<JukeboxPlayable>: Unpin, Box<ProvidesBannerPatterns>: Unpin, Box<Recipes>: Unpin, Box<LodestoneTracker>: Unpin, Box<FireworkExplosion>: Unpin, Box<Fireworks>: Unpin, Box<Profile>: Unpin, Box<NoteBlockSound>: Unpin, Box<BannerPatterns>: Unpin, Box<BaseColor>: Unpin, Box<PotDecorations>: Unpin, Box<Container>: Unpin, Box<BlockState>: Unpin, Box<Bees>: Unpin, Box<Lock>: Unpin, Box<ContainerLoot>: Unpin, Box<BreakSound>: Unpin, Box<VillagerVariant>: Unpin, Box<WolfVariant>: Unpin, Box<WolfSoundVariant>: Unpin, Box<WolfCollar>: Unpin, Box<FoxVariant>: Unpin, Box<SalmonSize>: Unpin, Box<ParrotVariant>: Unpin, Box<TropicalFishPattern>: Unpin, Box<TropicalFishBaseColor>: Unpin, Box<TropicalFishPatternColor>: Unpin, Box<MooshroomVariant>: Unpin, Box<RabbitVariant>: Unpin, Box<PigVariant>: Unpin, Box<CowVariant>: Unpin, Box<ChickenVariant>: Unpin, Box<FrogVariant>: Unpin, Box<HorseVariant>: Unpin, Box<PaintingVariant>: Unpin, Box<LlamaVariant>: Unpin, Box<AxolotlVariant>: Unpin, Box<CatVariant>: Unpin, Box<CatCollar>: Unpin, Box<SheepColor>: Unpin, Box<ShulkerColor>: Unpin, Box<UseEffects>: Unpin, Box<MinimumAttackCharge>: Unpin, Box<DamageType>: Unpin, Box<PiercingWeapon>: Unpin, Box<KineticWeapon>: Unpin, Box<ZombieNautilusVariant>: Unpin, Box<AttackRange>: Unpin, Box<AdditionalTradeCost>: Unpin, Box<Dye>: Unpin, Box<PigSoundVariant>: Unpin, Box<CowSoundVariant>: Unpin, Box<ChickenSoundVariant>: Unpin, Box<CatSoundVariant>: Unpin, Box<SulfurCubeContent>: Unpin, Box<BlockTransformer>: Unpin, Box<ProvidesPotteryPattern>: Unpin, Box<AttackAnimation>: Unpin, Box<InteractAnimation>: Unpin, Box<VillagerFood>: Unpin, Box<Compostable>: Unpin, Box<CookingFuel>: Unpin, Box<BrewingFuel>: Unpin, Box<MobVisibility>: Unpin, Box<SignTextFront>: Unpin, Box<SignTextBack>: Unpin, Box<Waxed>: Unpin, Box<CushionColor>: Unpin, Box<IndexMap<DataComponentKind, Option<DataComponent>>>: Unpin,

§

impl UnsafeUnpin for MerchantOffer

§

impl UnwindSafe for MerchantOffer
where RawVecInner: UnwindSafe, BoxRaw<CustomData>: UnwindSafe, BoxRaw<MaxStackSize>: UnwindSafe, BoxRaw<MaxDamage>: UnwindSafe, BoxRaw<Damage>: UnwindSafe, BoxRaw<Unbreakable>: UnwindSafe, BoxRaw<CustomName>: UnwindSafe, BoxRaw<ItemName>: UnwindSafe, BoxRaw<ItemModel>: UnwindSafe, BoxRaw<Lore>: UnwindSafe, BoxRaw<Rarity>: UnwindSafe, BoxRaw<Enchantments>: UnwindSafe, BoxRaw<CanPlaceOn>: UnwindSafe, BoxRaw<CanBreak>: UnwindSafe, BoxRaw<AttributeModifiers>: UnwindSafe, BoxRaw<CustomModelData>: UnwindSafe, BoxRaw<TooltipDisplay>: UnwindSafe, BoxRaw<RepairCost>: UnwindSafe, BoxRaw<CreativeSlotLock>: UnwindSafe, BoxRaw<EnchantmentGlintOverride>: UnwindSafe, BoxRaw<IntangibleProjectile>: UnwindSafe, BoxRaw<Food>: UnwindSafe, BoxRaw<Consumable>: UnwindSafe, BoxRaw<UseRemainder>: UnwindSafe, BoxRaw<UseCooldown>: UnwindSafe, BoxRaw<DamageResistant>: UnwindSafe, BoxRaw<Tool>: UnwindSafe, BoxRaw<Weapon>: UnwindSafe, BoxRaw<Enchantable>: UnwindSafe, BoxRaw<Equippable>: UnwindSafe, BoxRaw<Repairable>: UnwindSafe, BoxRaw<Glider>: UnwindSafe, BoxRaw<TooltipStyle>: UnwindSafe, BoxRaw<DeathProtection>: UnwindSafe, BoxRaw<BlocksAttacks>: UnwindSafe, BoxRaw<StoredEnchantments>: UnwindSafe, BoxRaw<DyedColor>: UnwindSafe, BoxRaw<MapId>: UnwindSafe, BoxRaw<MapDecorations>: UnwindSafe, BoxRaw<MapPostProcessing>: UnwindSafe, BoxRaw<ChargedProjectiles>: UnwindSafe, BoxRaw<BundleContents>: UnwindSafe, BoxRaw<PotionContents>: UnwindSafe, BoxRaw<PotionDurationScale>: UnwindSafe, BoxRaw<SuspiciousStewEffects>: UnwindSafe, BoxRaw<WritableBookContent>: UnwindSafe, BoxRaw<WrittenBookContent>: UnwindSafe, BoxRaw<Trim>: UnwindSafe, BoxRaw<DebugStickState>: UnwindSafe, BoxRaw<EntityData>: UnwindSafe, BoxRaw<BucketEntityData>: UnwindSafe, BoxRaw<BlockEntityData>: UnwindSafe, BoxRaw<Instrument>: UnwindSafe, BoxRaw<ProvidesTrimMaterial>: UnwindSafe, BoxRaw<OminousBottleAmplifier>: UnwindSafe, BoxRaw<JukeboxPlayable>: UnwindSafe, BoxRaw<ProvidesBannerPatterns>: UnwindSafe, BoxRaw<Recipes>: UnwindSafe, BoxRaw<LodestoneTracker>: UnwindSafe, BoxRaw<FireworkExplosion>: UnwindSafe, BoxRaw<Fireworks>: UnwindSafe, BoxRaw<Profile>: UnwindSafe, BoxRaw<NoteBlockSound>: UnwindSafe, BoxRaw<BannerPatterns>: UnwindSafe, BoxRaw<BaseColor>: UnwindSafe, BoxRaw<PotDecorations>: UnwindSafe, BoxRaw<Container>: UnwindSafe, BoxRaw<BlockState>: UnwindSafe, BoxRaw<Bees>: UnwindSafe, BoxRaw<Lock>: UnwindSafe, BoxRaw<ContainerLoot>: UnwindSafe, BoxRaw<BreakSound>: UnwindSafe, BoxRaw<VillagerVariant>: UnwindSafe, BoxRaw<WolfVariant>: UnwindSafe, BoxRaw<WolfSoundVariant>: UnwindSafe, BoxRaw<WolfCollar>: UnwindSafe, BoxRaw<FoxVariant>: UnwindSafe, BoxRaw<SalmonSize>: UnwindSafe, BoxRaw<ParrotVariant>: UnwindSafe, BoxRaw<TropicalFishPattern>: UnwindSafe, BoxRaw<TropicalFishBaseColor>: UnwindSafe, BoxRaw<TropicalFishPatternColor>: UnwindSafe, BoxRaw<MooshroomVariant>: UnwindSafe, BoxRaw<RabbitVariant>: UnwindSafe, BoxRaw<PigVariant>: UnwindSafe, BoxRaw<CowVariant>: UnwindSafe, BoxRaw<ChickenVariant>: UnwindSafe, BoxRaw<FrogVariant>: UnwindSafe, BoxRaw<HorseVariant>: UnwindSafe, BoxRaw<PaintingVariant>: UnwindSafe, BoxRaw<LlamaVariant>: UnwindSafe, BoxRaw<AxolotlVariant>: UnwindSafe, BoxRaw<CatVariant>: UnwindSafe, BoxRaw<CatCollar>: UnwindSafe, BoxRaw<SheepColor>: UnwindSafe, BoxRaw<ShulkerColor>: UnwindSafe, BoxRaw<UseEffects>: UnwindSafe, BoxRaw<MinimumAttackCharge>: UnwindSafe, BoxRaw<DamageType>: UnwindSafe, BoxRaw<PiercingWeapon>: UnwindSafe, BoxRaw<KineticWeapon>: UnwindSafe, BoxRaw<ZombieNautilusVariant>: UnwindSafe, BoxRaw<AttackRange>: UnwindSafe, BoxRaw<AdditionalTradeCost>: UnwindSafe, BoxRaw<Dye>: UnwindSafe, BoxRaw<PigSoundVariant>: UnwindSafe, BoxRaw<CowSoundVariant>: UnwindSafe, BoxRaw<ChickenSoundVariant>: UnwindSafe, BoxRaw<CatSoundVariant>: UnwindSafe, BoxRaw<SulfurCubeContent>: UnwindSafe, BoxRaw<BlockTransformer>: UnwindSafe, BoxRaw<ProvidesPotteryPattern>: UnwindSafe, BoxRaw<AttackAnimation>: UnwindSafe, BoxRaw<InteractAnimation>: UnwindSafe, BoxRaw<VillagerFood>: UnwindSafe, BoxRaw<Compostable>: UnwindSafe, BoxRaw<CookingFuel>: UnwindSafe, BoxRaw<BrewingFuel>: UnwindSafe, BoxRaw<MobVisibility>: UnwindSafe, BoxRaw<SignTextFront>: UnwindSafe, BoxRaw<SignTextBack>: UnwindSafe, BoxRaw<Waxed>: UnwindSafe, BoxRaw<CushionColor>: UnwindSafe, BoxRaw<IndexMap<DataComponentKind, Option<DataComponent>>>: UnwindSafe,

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

impl<T> ConditionalSend for T
where T: Send,

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSend for T
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
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<A, B> Interchangeable<A> for B
where A: From<B>, B: From<A>,

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> IntoResult<T> for T

§

fn into_result(self) -> Result<T, RunSystemError>

Converts this type into the system output type.
§

impl<A> Is for A
where A: Any,

§

fn is<T>() -> bool
where T: Any,

Checks if the current type “is” another type, using a TypeId equality comparison. This is most useful in the context of generic logic. 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
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> Template for T
where T: Clone + Unpin,

§

type Output = T

The type of value produced by this [Template].
§

fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>

Uses this template and the given entity context to produce a [Template::Output].
§

fn clone_template(&self) -> T

Clones this template. See Clone.
Source§

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

Source§

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
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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<T> TypeData for T
where T: 'static + Send + Sync + Clone,

§

fn clone_type_data(&self) -> Box<dyn TypeData>

Creates a type-erased clone of self.
§

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