pub union DataComponentUnion {
/* private fields */
}
Expand description
A union of all data components.
You probably don’t want to use this directly. Consider DataComponentPatch
instead.
This type does not know its own value, and as such every function for it requires the
DataComponentKind
to be passed in. Passing the wrong DataComponentKind
will result
in undefined behavior. Also, all of the values are ManuallyDrop
.
Implementations§
Source§impl DataComponentUnion
impl DataComponentUnion
Sourcepub unsafe fn serialize_entry_as<S>(
&self,
serializer: &mut S,
kind: DataComponentKind,
) -> Result<(), <S as SerializeMap>::Error>where
S: SerializeMap,
pub unsafe fn serialize_entry_as<S>(
&self,
serializer: &mut S,
kind: DataComponentKind,
) -> Result<(), <S as SerializeMap>::Error>where
S: SerializeMap,
§Safety
kind
must be the correct value for this union.
Sourcepub unsafe fn drop_as(&mut self, kind: DataComponentKind)
pub unsafe fn drop_as(&mut self, kind: DataComponentKind)
§Safety
kind
must be the correct value for this union.
Sourcepub unsafe fn as_kind(
&self,
kind: DataComponentKind,
) -> &(dyn EncodableDataComponent + 'static)
pub unsafe fn as_kind( &self, kind: DataComponentKind, ) -> &(dyn EncodableDataComponent + 'static)
§Safety
kind
must be the correct value for this union.
pub fn azalea_read_as( kind: DataComponentKind, buf: &mut Cursor<&[u8]>, ) -> Result<DataComponentUnion, BufReadError>
Sourcepub unsafe fn azalea_write_as(
&self,
kind: DataComponentKind,
buf: &mut impl Write,
) -> Result<(), Error>
pub unsafe fn azalea_write_as( &self, kind: DataComponentKind, buf: &mut impl Write, ) -> Result<(), Error>
§Safety
kind
must be the correct value for this union.
Sourcepub unsafe fn clone_as(&self, kind: DataComponentKind) -> DataComponentUnion
pub unsafe fn clone_as(&self, kind: DataComponentKind) -> DataComponentUnion
§Safety
kind
must be the correct value for this union.
Sourcepub unsafe fn eq_as(
&self,
other: &DataComponentUnion,
kind: DataComponentKind,
) -> bool
pub unsafe fn eq_as( &self, other: &DataComponentUnion, kind: DataComponentKind, ) -> bool
§Safety
kind
must be the correct value for this union.
Trait Implementations§
Source§impl From<AttributeModifiers> for DataComponentUnion
impl From<AttributeModifiers> for DataComponentUnion
Source§fn from(value: AttributeModifiers) -> DataComponentUnion
fn from(value: AttributeModifiers) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<AxolotlVariant> for DataComponentUnion
impl From<AxolotlVariant> for DataComponentUnion
Source§fn from(value: AxolotlVariant) -> DataComponentUnion
fn from(value: AxolotlVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<BannerPatterns> for DataComponentUnion
impl From<BannerPatterns> for DataComponentUnion
Source§fn from(value: BannerPatterns) -> DataComponentUnion
fn from(value: BannerPatterns) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<BaseColor> for DataComponentUnion
impl From<BaseColor> for DataComponentUnion
Source§fn from(value: BaseColor) -> DataComponentUnion
fn from(value: BaseColor) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Bees> for DataComponentUnion
impl From<Bees> for DataComponentUnion
Source§fn from(value: Bees) -> DataComponentUnion
fn from(value: Bees) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<BlockEntityData> for DataComponentUnion
impl From<BlockEntityData> for DataComponentUnion
Source§fn from(value: BlockEntityData) -> DataComponentUnion
fn from(value: BlockEntityData) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<BlockState> for DataComponentUnion
impl From<BlockState> for DataComponentUnion
Source§fn from(value: BlockState) -> DataComponentUnion
fn from(value: BlockState) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<BlocksAttacks> for DataComponentUnion
impl From<BlocksAttacks> for DataComponentUnion
Source§fn from(value: BlocksAttacks) -> DataComponentUnion
fn from(value: BlocksAttacks) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<BreakSound> for DataComponentUnion
impl From<BreakSound> for DataComponentUnion
Source§fn from(value: BreakSound) -> DataComponentUnion
fn from(value: BreakSound) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<BucketEntityData> for DataComponentUnion
impl From<BucketEntityData> for DataComponentUnion
Source§fn from(value: BucketEntityData) -> DataComponentUnion
fn from(value: BucketEntityData) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<BundleContents> for DataComponentUnion
impl From<BundleContents> for DataComponentUnion
Source§fn from(value: BundleContents) -> DataComponentUnion
fn from(value: BundleContents) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CanBreak> for DataComponentUnion
impl From<CanBreak> for DataComponentUnion
Source§fn from(value: CanBreak) -> DataComponentUnion
fn from(value: CanBreak) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CanPlaceOn> for DataComponentUnion
impl From<CanPlaceOn> for DataComponentUnion
Source§fn from(value: CanPlaceOn) -> DataComponentUnion
fn from(value: CanPlaceOn) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CatCollar> for DataComponentUnion
impl From<CatCollar> for DataComponentUnion
Source§fn from(value: CatCollar) -> DataComponentUnion
fn from(value: CatCollar) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CatVariant> for DataComponentUnion
impl From<CatVariant> for DataComponentUnion
Source§fn from(value: CatVariant) -> DataComponentUnion
fn from(value: CatVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ChargedProjectiles> for DataComponentUnion
impl From<ChargedProjectiles> for DataComponentUnion
Source§fn from(value: ChargedProjectiles) -> DataComponentUnion
fn from(value: ChargedProjectiles) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ChickenVariant> for DataComponentUnion
impl From<ChickenVariant> for DataComponentUnion
Source§fn from(value: ChickenVariant) -> DataComponentUnion
fn from(value: ChickenVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Consumable> for DataComponentUnion
impl From<Consumable> for DataComponentUnion
Source§fn from(value: Consumable) -> DataComponentUnion
fn from(value: Consumable) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Container> for DataComponentUnion
impl From<Container> for DataComponentUnion
Source§fn from(value: Container) -> DataComponentUnion
fn from(value: Container) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ContainerLoot> for DataComponentUnion
impl From<ContainerLoot> for DataComponentUnion
Source§fn from(value: ContainerLoot) -> DataComponentUnion
fn from(value: ContainerLoot) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CowVariant> for DataComponentUnion
impl From<CowVariant> for DataComponentUnion
Source§fn from(value: CowVariant) -> DataComponentUnion
fn from(value: CowVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CreativeSlotLock> for DataComponentUnion
impl From<CreativeSlotLock> for DataComponentUnion
Source§fn from(value: CreativeSlotLock) -> DataComponentUnion
fn from(value: CreativeSlotLock) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CustomData> for DataComponentUnion
impl From<CustomData> for DataComponentUnion
Source§fn from(value: CustomData) -> DataComponentUnion
fn from(value: CustomData) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CustomModelData> for DataComponentUnion
impl From<CustomModelData> for DataComponentUnion
Source§fn from(value: CustomModelData) -> DataComponentUnion
fn from(value: CustomModelData) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<CustomName> for DataComponentUnion
impl From<CustomName> for DataComponentUnion
Source§fn from(value: CustomName) -> DataComponentUnion
fn from(value: CustomName) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Damage> for DataComponentUnion
impl From<Damage> for DataComponentUnion
Source§fn from(value: Damage) -> DataComponentUnion
fn from(value: Damage) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<DamageResistant> for DataComponentUnion
impl From<DamageResistant> for DataComponentUnion
Source§fn from(value: DamageResistant) -> DataComponentUnion
fn from(value: DamageResistant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<DeathProtection> for DataComponentUnion
impl From<DeathProtection> for DataComponentUnion
Source§fn from(value: DeathProtection) -> DataComponentUnion
fn from(value: DeathProtection) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<DebugStickState> for DataComponentUnion
impl From<DebugStickState> for DataComponentUnion
Source§fn from(value: DebugStickState) -> DataComponentUnion
fn from(value: DebugStickState) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<DyedColor> for DataComponentUnion
impl From<DyedColor> for DataComponentUnion
Source§fn from(value: DyedColor) -> DataComponentUnion
fn from(value: DyedColor) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Enchantable> for DataComponentUnion
impl From<Enchantable> for DataComponentUnion
Source§fn from(value: Enchantable) -> DataComponentUnion
fn from(value: Enchantable) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<EnchantmentGlintOverride> for DataComponentUnion
impl From<EnchantmentGlintOverride> for DataComponentUnion
Source§fn from(value: EnchantmentGlintOverride) -> DataComponentUnion
fn from(value: EnchantmentGlintOverride) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Enchantments> for DataComponentUnion
impl From<Enchantments> for DataComponentUnion
Source§fn from(value: Enchantments) -> DataComponentUnion
fn from(value: Enchantments) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<EntityData> for DataComponentUnion
impl From<EntityData> for DataComponentUnion
Source§fn from(value: EntityData) -> DataComponentUnion
fn from(value: EntityData) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Equippable> for DataComponentUnion
impl From<Equippable> for DataComponentUnion
Source§fn from(value: Equippable) -> DataComponentUnion
fn from(value: Equippable) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<FireworkExplosion> for DataComponentUnion
impl From<FireworkExplosion> for DataComponentUnion
Source§fn from(value: FireworkExplosion) -> DataComponentUnion
fn from(value: FireworkExplosion) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Fireworks> for DataComponentUnion
impl From<Fireworks> for DataComponentUnion
Source§fn from(value: Fireworks) -> DataComponentUnion
fn from(value: Fireworks) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Food> for DataComponentUnion
impl From<Food> for DataComponentUnion
Source§fn from(value: Food) -> DataComponentUnion
fn from(value: Food) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<FoxVariant> for DataComponentUnion
impl From<FoxVariant> for DataComponentUnion
Source§fn from(value: FoxVariant) -> DataComponentUnion
fn from(value: FoxVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<FrogVariant> for DataComponentUnion
impl From<FrogVariant> for DataComponentUnion
Source§fn from(value: FrogVariant) -> DataComponentUnion
fn from(value: FrogVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Glider> for DataComponentUnion
impl From<Glider> for DataComponentUnion
Source§fn from(value: Glider) -> DataComponentUnion
fn from(value: Glider) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<HorseVariant> for DataComponentUnion
impl From<HorseVariant> for DataComponentUnion
Source§fn from(value: HorseVariant) -> DataComponentUnion
fn from(value: HorseVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Instrument> for DataComponentUnion
impl From<Instrument> for DataComponentUnion
Source§fn from(value: Instrument) -> DataComponentUnion
fn from(value: Instrument) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<IntangibleProjectile> for DataComponentUnion
impl From<IntangibleProjectile> for DataComponentUnion
Source§fn from(value: IntangibleProjectile) -> DataComponentUnion
fn from(value: IntangibleProjectile) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ItemModel> for DataComponentUnion
impl From<ItemModel> for DataComponentUnion
Source§fn from(value: ItemModel) -> DataComponentUnion
fn from(value: ItemModel) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ItemName> for DataComponentUnion
impl From<ItemName> for DataComponentUnion
Source§fn from(value: ItemName) -> DataComponentUnion
fn from(value: ItemName) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<JukeboxPlayable> for DataComponentUnion
impl From<JukeboxPlayable> for DataComponentUnion
Source§fn from(value: JukeboxPlayable) -> DataComponentUnion
fn from(value: JukeboxPlayable) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<LlamaVariant> for DataComponentUnion
impl From<LlamaVariant> for DataComponentUnion
Source§fn from(value: LlamaVariant) -> DataComponentUnion
fn from(value: LlamaVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Lock> for DataComponentUnion
impl From<Lock> for DataComponentUnion
Source§fn from(value: Lock) -> DataComponentUnion
fn from(value: Lock) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<LodestoneTracker> for DataComponentUnion
impl From<LodestoneTracker> for DataComponentUnion
Source§fn from(value: LodestoneTracker) -> DataComponentUnion
fn from(value: LodestoneTracker) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Lore> for DataComponentUnion
impl From<Lore> for DataComponentUnion
Source§fn from(value: Lore) -> DataComponentUnion
fn from(value: Lore) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<MapColor> for DataComponentUnion
impl From<MapColor> for DataComponentUnion
Source§fn from(value: MapColor) -> DataComponentUnion
fn from(value: MapColor) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<MapDecorations> for DataComponentUnion
impl From<MapDecorations> for DataComponentUnion
Source§fn from(value: MapDecorations) -> DataComponentUnion
fn from(value: MapDecorations) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<MapId> for DataComponentUnion
impl From<MapId> for DataComponentUnion
Source§fn from(value: MapId) -> DataComponentUnion
fn from(value: MapId) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<MapPostProcessing> for DataComponentUnion
impl From<MapPostProcessing> for DataComponentUnion
Source§fn from(value: MapPostProcessing) -> DataComponentUnion
fn from(value: MapPostProcessing) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<MaxDamage> for DataComponentUnion
impl From<MaxDamage> for DataComponentUnion
Source§fn from(value: MaxDamage) -> DataComponentUnion
fn from(value: MaxDamage) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<MaxStackSize> for DataComponentUnion
impl From<MaxStackSize> for DataComponentUnion
Source§fn from(value: MaxStackSize) -> DataComponentUnion
fn from(value: MaxStackSize) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<MooshroomVariant> for DataComponentUnion
impl From<MooshroomVariant> for DataComponentUnion
Source§fn from(value: MooshroomVariant) -> DataComponentUnion
fn from(value: MooshroomVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<NoteBlockSound> for DataComponentUnion
impl From<NoteBlockSound> for DataComponentUnion
Source§fn from(value: NoteBlockSound) -> DataComponentUnion
fn from(value: NoteBlockSound) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<OminousBottleAmplifier> for DataComponentUnion
impl From<OminousBottleAmplifier> for DataComponentUnion
Source§fn from(value: OminousBottleAmplifier) -> DataComponentUnion
fn from(value: OminousBottleAmplifier) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<PaintingVariant> for DataComponentUnion
impl From<PaintingVariant> for DataComponentUnion
Source§fn from(value: PaintingVariant) -> DataComponentUnion
fn from(value: PaintingVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ParrotVariant> for DataComponentUnion
impl From<ParrotVariant> for DataComponentUnion
Source§fn from(value: ParrotVariant) -> DataComponentUnion
fn from(value: ParrotVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<PigVariant> for DataComponentUnion
impl From<PigVariant> for DataComponentUnion
Source§fn from(value: PigVariant) -> DataComponentUnion
fn from(value: PigVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<PotDecorations> for DataComponentUnion
impl From<PotDecorations> for DataComponentUnion
Source§fn from(value: PotDecorations) -> DataComponentUnion
fn from(value: PotDecorations) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<PotionContents> for DataComponentUnion
impl From<PotionContents> for DataComponentUnion
Source§fn from(value: PotionContents) -> DataComponentUnion
fn from(value: PotionContents) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<PotionDurationScale> for DataComponentUnion
impl From<PotionDurationScale> for DataComponentUnion
Source§fn from(value: PotionDurationScale) -> DataComponentUnion
fn from(value: PotionDurationScale) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Profile> for DataComponentUnion
impl From<Profile> for DataComponentUnion
Source§fn from(value: Profile) -> DataComponentUnion
fn from(value: Profile) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ProvidesBannerPatterns> for DataComponentUnion
impl From<ProvidesBannerPatterns> for DataComponentUnion
Source§fn from(value: ProvidesBannerPatterns) -> DataComponentUnion
fn from(value: ProvidesBannerPatterns) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ProvidesTrimMaterial> for DataComponentUnion
impl From<ProvidesTrimMaterial> for DataComponentUnion
Source§fn from(value: ProvidesTrimMaterial) -> DataComponentUnion
fn from(value: ProvidesTrimMaterial) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<RabbitVariant> for DataComponentUnion
impl From<RabbitVariant> for DataComponentUnion
Source§fn from(value: RabbitVariant) -> DataComponentUnion
fn from(value: RabbitVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Rarity> for DataComponentUnion
impl From<Rarity> for DataComponentUnion
Source§fn from(value: Rarity) -> DataComponentUnion
fn from(value: Rarity) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Recipes> for DataComponentUnion
impl From<Recipes> for DataComponentUnion
Source§fn from(value: Recipes) -> DataComponentUnion
fn from(value: Recipes) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<RepairCost> for DataComponentUnion
impl From<RepairCost> for DataComponentUnion
Source§fn from(value: RepairCost) -> DataComponentUnion
fn from(value: RepairCost) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Repairable> for DataComponentUnion
impl From<Repairable> for DataComponentUnion
Source§fn from(value: Repairable) -> DataComponentUnion
fn from(value: Repairable) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<SalmonSize> for DataComponentUnion
impl From<SalmonSize> for DataComponentUnion
Source§fn from(value: SalmonSize) -> DataComponentUnion
fn from(value: SalmonSize) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<SheepColor> for DataComponentUnion
impl From<SheepColor> for DataComponentUnion
Source§fn from(value: SheepColor) -> DataComponentUnion
fn from(value: SheepColor) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<ShulkerColor> for DataComponentUnion
impl From<ShulkerColor> for DataComponentUnion
Source§fn from(value: ShulkerColor) -> DataComponentUnion
fn from(value: ShulkerColor) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<StoredEnchantments> for DataComponentUnion
impl From<StoredEnchantments> for DataComponentUnion
Source§fn from(value: StoredEnchantments) -> DataComponentUnion
fn from(value: StoredEnchantments) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<SuspiciousStewEffects> for DataComponentUnion
impl From<SuspiciousStewEffects> for DataComponentUnion
Source§fn from(value: SuspiciousStewEffects) -> DataComponentUnion
fn from(value: SuspiciousStewEffects) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Tool> for DataComponentUnion
impl From<Tool> for DataComponentUnion
Source§fn from(value: Tool) -> DataComponentUnion
fn from(value: Tool) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<TooltipDisplay> for DataComponentUnion
impl From<TooltipDisplay> for DataComponentUnion
Source§fn from(value: TooltipDisplay) -> DataComponentUnion
fn from(value: TooltipDisplay) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<TooltipStyle> for DataComponentUnion
impl From<TooltipStyle> for DataComponentUnion
Source§fn from(value: TooltipStyle) -> DataComponentUnion
fn from(value: TooltipStyle) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Trim> for DataComponentUnion
impl From<Trim> for DataComponentUnion
Source§fn from(value: Trim) -> DataComponentUnion
fn from(value: Trim) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<TropicalFishBaseColor> for DataComponentUnion
impl From<TropicalFishBaseColor> for DataComponentUnion
Source§fn from(value: TropicalFishBaseColor) -> DataComponentUnion
fn from(value: TropicalFishBaseColor) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<TropicalFishPattern> for DataComponentUnion
impl From<TropicalFishPattern> for DataComponentUnion
Source§fn from(value: TropicalFishPattern) -> DataComponentUnion
fn from(value: TropicalFishPattern) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<TropicalFishPatternColor> for DataComponentUnion
impl From<TropicalFishPatternColor> for DataComponentUnion
Source§fn from(value: TropicalFishPatternColor) -> DataComponentUnion
fn from(value: TropicalFishPatternColor) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Unbreakable> for DataComponentUnion
impl From<Unbreakable> for DataComponentUnion
Source§fn from(value: Unbreakable) -> DataComponentUnion
fn from(value: Unbreakable) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<UseCooldown> for DataComponentUnion
impl From<UseCooldown> for DataComponentUnion
Source§fn from(value: UseCooldown) -> DataComponentUnion
fn from(value: UseCooldown) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<UseRemainder> for DataComponentUnion
impl From<UseRemainder> for DataComponentUnion
Source§fn from(value: UseRemainder) -> DataComponentUnion
fn from(value: UseRemainder) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<VillagerVariant> for DataComponentUnion
impl From<VillagerVariant> for DataComponentUnion
Source§fn from(value: VillagerVariant) -> DataComponentUnion
fn from(value: VillagerVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<Weapon> for DataComponentUnion
impl From<Weapon> for DataComponentUnion
Source§fn from(value: Weapon) -> DataComponentUnion
fn from(value: Weapon) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<WolfCollar> for DataComponentUnion
impl From<WolfCollar> for DataComponentUnion
Source§fn from(value: WolfCollar) -> DataComponentUnion
fn from(value: WolfCollar) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<WolfSoundVariant> for DataComponentUnion
impl From<WolfSoundVariant> for DataComponentUnion
Source§fn from(value: WolfSoundVariant) -> DataComponentUnion
fn from(value: WolfSoundVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<WolfVariant> for DataComponentUnion
impl From<WolfVariant> for DataComponentUnion
Source§fn from(value: WolfVariant) -> DataComponentUnion
fn from(value: WolfVariant) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<WritableBookContent> for DataComponentUnion
impl From<WritableBookContent> for DataComponentUnion
Source§fn from(value: WritableBookContent) -> DataComponentUnion
fn from(value: WritableBookContent) -> DataComponentUnion
Converts to this type from the input type.
Source§impl From<WrittenBookContent> for DataComponentUnion
impl From<WrittenBookContent> for DataComponentUnion
Source§fn from(value: WrittenBookContent) -> DataComponentUnion
fn from(value: WrittenBookContent) -> DataComponentUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataComponentUnion
impl RefUnwindSafe for DataComponentUnion
impl Send for DataComponentUnion
impl Sync for DataComponentUnion
impl Unpin for DataComponentUnion
impl UnwindSafe for DataComponentUnion
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> CompatExt for T
impl<T> CompatExt for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn 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>
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)
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)
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.