pub enum Identifier {
Owned {
colon_index: Option<NonZero<usize>>,
inner: Box<str>,
},
Static(IdentifierRef<'static>),
}Expand description
An identifier, like minecraft:stone or brigadier:number.
All registry variants can be converted to an identifier.
This was formerly called a ResourceLocation.
Variants§
Implementations§
Source§impl Identifier
impl Identifier
pub fn new(resource_string: impl Into<String>) -> Identifier
pub fn new_from_parts(namespace: &str, path: &str) -> Identifier
pub const fn const_new(s: &'static str) -> Identifier
pub fn namespace(&self) -> &str
pub fn path(&self) -> &str
Trait Implementations§
Source§impl AzBuf for Identifier
impl AzBuf for Identifier
fn azalea_read( ctx: Ctx<'_>, buf: &mut Cursor<&[u8]>, ) -> Result<Identifier, BufReadError>
fn azalea_write(&self, ctx: Ctx<'_>, buf: &mut impl Write) -> Result<(), Error>
Source§impl Clone for Identifier
impl Clone for Identifier
Source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<O> Codec<O> for Identifierwhere
O: Ops,
impl<O> Codec<O> for Identifierwhere
O: Ops,
Source§fn codec_read(ops: &O) -> Result<Identifier, ReadError>
fn codec_read(ops: &O) -> Result<Identifier, ReadError>
Convert from a data format to a data structure.
Source§fn codec_write(&self) -> Result<O, WriteError>
fn codec_write(&self) -> Result<O, WriteError>
Convert from a data structure to a data format.
type Incomplete = Result<Self, ReadError>
Source§impl Debug for Identifier
impl Debug for Identifier
Source§impl Default for Identifier
impl Default for Identifier
Source§fn default() -> Identifier
fn default() -> Identifier
Returns the “default value” for a type. Read more
Source§impl Display for Identifier
impl Display for Identifier
impl Eq for Identifier
Source§impl From<&str> for Identifier
impl From<&str> for Identifier
Source§fn from(s: &str) -> Identifier
fn from(s: &str) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<Activity> for Identifier
impl<'a> From<Activity> for Identifier
Source§fn from(value: Activity) -> Identifier
fn from(value: Activity) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<Attribute> for Identifier
impl<'a> From<Attribute> for Identifier
Source§fn from(value: Attribute) -> Identifier
fn from(value: Attribute) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<AttributeKind> for Identifier
impl<'a> From<AttributeKind> for Identifier
Source§fn from(value: AttributeKind) -> Identifier
fn from(value: AttributeKind) -> Identifier
Converts to this type from the input type.
§impl<'a> From<AxolotlVariantKind> for Identifier
impl<'a> From<AxolotlVariantKind> for Identifier
§fn from(value: AxolotlVariantKind) -> Identifier
fn from(value: AxolotlVariantKind) -> Identifier
Converts to this type from the input type.
§impl From<BannerPatternKind> for Identifier
impl From<BannerPatternKind> for Identifier
§fn from(registry: BannerPatternKind) -> Identifier
fn from(registry: BannerPatternKind) -> Identifier
Converts to this type from the input type.
§impl From<Biome> for Identifier
impl From<Biome> for Identifier
§fn from(registry: Biome) -> Identifier
fn from(registry: Biome) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<BlockEntityKind> for Identifier
impl<'a> From<BlockEntityKind> for Identifier
Source§fn from(value: BlockEntityKind) -> Identifier
fn from(value: BlockEntityKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<BlockKind> for Identifier
impl<'a> From<BlockKind> for Identifier
Source§fn from(value: BlockKind) -> Identifier
fn from(value: BlockKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<BlockPredicateKind> for Identifier
impl<'a> From<BlockPredicateKind> for Identifier
Source§fn from(value: BlockPredicateKind) -> Identifier
fn from(value: BlockPredicateKind) -> Identifier
Converts to this type from the input type.
§impl From<BlockTransformer> for Identifier
impl From<BlockTransformer> for Identifier
§fn from(registry: BlockTransformer) -> Identifier
fn from(registry: BlockTransformer) -> Identifier
Converts to this type from the input type.
§impl From<CatSoundVariant> for Identifier
impl From<CatSoundVariant> for Identifier
§fn from(registry: CatSoundVariant) -> Identifier
fn from(registry: CatSoundVariant) -> Identifier
Converts to this type from the input type.
§impl From<CatVariant> for Identifier
impl From<CatVariant> for Identifier
§fn from(registry: CatVariant) -> Identifier
fn from(registry: CatVariant) -> Identifier
Converts to this type from the input type.
§impl From<ChatKind> for Identifier
impl From<ChatKind> for Identifier
§fn from(registry: ChatKind) -> Identifier
fn from(registry: ChatKind) -> Identifier
Converts to this type from the input type.
§impl From<ChickenSoundVariant> for Identifier
impl From<ChickenSoundVariant> for Identifier
§fn from(registry: ChickenSoundVariant) -> Identifier
fn from(registry: ChickenSoundVariant) -> Identifier
Converts to this type from the input type.
§impl From<ChickenVariant> for Identifier
impl From<ChickenVariant> for Identifier
§fn from(registry: ChickenVariant) -> Identifier
fn from(registry: ChickenVariant) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<ChunkStatus> for Identifier
impl<'a> From<ChunkStatus> for Identifier
Source§fn from(value: ChunkStatus) -> Identifier
fn from(value: ChunkStatus) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<CommandArgumentKind> for Identifier
impl<'a> From<CommandArgumentKind> for Identifier
Source§fn from(value: CommandArgumentKind) -> Identifier
fn from(value: CommandArgumentKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<ConsumeEffectKind> for Identifier
impl<'a> From<ConsumeEffectKind> for Identifier
Source§fn from(value: ConsumeEffectKind) -> Identifier
fn from(value: ConsumeEffectKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<ContextFloatProviderKind> for Identifier
impl<'a> From<ContextFloatProviderKind> for Identifier
Source§fn from(value: ContextFloatProviderKind) -> Identifier
fn from(value: ContextFloatProviderKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<ContextIntProviderKind> for Identifier
impl<'a> From<ContextIntProviderKind> for Identifier
Source§fn from(value: ContextIntProviderKind) -> Identifier
fn from(value: ContextIntProviderKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<ContextKeySet> for Identifier
impl<'a> From<ContextKeySet> for Identifier
Source§fn from(value: ContextKeySet) -> Identifier
fn from(value: ContextKeySet) -> Identifier
Converts to this type from the input type.
§impl From<CowSoundVariant> for Identifier
impl From<CowSoundVariant> for Identifier
§fn from(registry: CowSoundVariant) -> Identifier
fn from(registry: CowSoundVariant) -> Identifier
Converts to this type from the input type.
§impl From<CowVariant> for Identifier
impl From<CowVariant> for Identifier
§fn from(registry: CowVariant) -> Identifier
fn from(registry: CowVariant) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<CreativeModeTab> for Identifier
impl<'a> From<CreativeModeTab> for Identifier
Source§fn from(value: CreativeModeTab) -> Identifier
fn from(value: CreativeModeTab) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<CustomStat> for Identifier
impl<'a> From<CustomStat> for Identifier
Source§fn from(value: CustomStat) -> Identifier
fn from(value: CustomStat) -> Identifier
Converts to this type from the input type.
§impl From<DamageKind> for Identifier
impl From<DamageKind> for Identifier
§fn from(registry: DamageKind) -> Identifier
fn from(registry: DamageKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<DataComponentKind> for Identifier
impl<'a> From<DataComponentKind> for Identifier
Source§fn from(value: DataComponentKind) -> Identifier
fn from(value: DataComponentKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<DataComponentPredicateKind> for Identifier
impl<'a> From<DataComponentPredicateKind> for Identifier
Source§fn from(value: DataComponentPredicateKind) -> Identifier
fn from(value: DataComponentPredicateKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<DebugSubscription> for Identifier
impl<'a> From<DebugSubscription> for Identifier
Source§fn from(value: DebugSubscription) -> Identifier
fn from(value: DebugSubscription) -> Identifier
Converts to this type from the input type.
§impl From<DecoratedPotPattern> for Identifier
impl From<DecoratedPotPattern> for Identifier
§fn from(registry: DecoratedPotPattern) -> Identifier
fn from(registry: DecoratedPotPattern) -> Identifier
Converts to this type from the input type.
§impl From<Dialog> for Identifier
impl From<Dialog> for Identifier
§fn from(registry: Dialog) -> Identifier
fn from(registry: Dialog) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<DialogActionKind> for Identifier
impl<'a> From<DialogActionKind> for Identifier
Source§fn from(value: DialogActionKind) -> Identifier
fn from(value: DialogActionKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<DialogBodyKind> for Identifier
impl<'a> From<DialogBodyKind> for Identifier
Source§fn from(value: DialogBodyKind) -> Identifier
fn from(value: DialogBodyKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<DialogKind> for Identifier
impl<'a> From<DialogKind> for Identifier
Source§fn from(value: DialogKind) -> Identifier
fn from(value: DialogKind) -> Identifier
Converts to this type from the input type.
§impl From<DimensionKind> for Identifier
impl From<DimensionKind> for Identifier
§fn from(registry: DimensionKind) -> Identifier
fn from(registry: DimensionKind) -> Identifier
Converts to this type from the input type.
§impl From<Enchantment> for Identifier
impl From<Enchantment> for Identifier
§fn from(registry: Enchantment) -> Identifier
fn from(registry: Enchantment) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EnchantmentEffectComponentKind> for Identifier
impl<'a> From<EnchantmentEffectComponentKind> for Identifier
Source§fn from(value: EnchantmentEffectComponentKind) -> Identifier
fn from(value: EnchantmentEffectComponentKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EnchantmentEntityEffectKind> for Identifier
impl<'a> From<EnchantmentEntityEffectKind> for Identifier
Source§fn from(value: EnchantmentEntityEffectKind) -> Identifier
fn from(value: EnchantmentEntityEffectKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EnchantmentLevelBasedValueKind> for Identifier
impl<'a> From<EnchantmentLevelBasedValueKind> for Identifier
Source§fn from(value: EnchantmentLevelBasedValueKind) -> Identifier
fn from(value: EnchantmentLevelBasedValueKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EnchantmentLocationBasedEffectKind> for Identifier
impl<'a> From<EnchantmentLocationBasedEffectKind> for Identifier
Source§fn from(value: EnchantmentLocationBasedEffectKind) -> Identifier
fn from(value: EnchantmentLocationBasedEffectKind) -> Identifier
Converts to this type from the input type.
§impl From<EnchantmentProvider> for Identifier
impl From<EnchantmentProvider> for Identifier
§fn from(registry: EnchantmentProvider) -> Identifier
fn from(registry: EnchantmentProvider) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EnchantmentProviderKind> for Identifier
impl<'a> From<EnchantmentProviderKind> for Identifier
Source§fn from(value: EnchantmentProviderKind) -> Identifier
fn from(value: EnchantmentProviderKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EnchantmentValueEffectKind> for Identifier
impl<'a> From<EnchantmentValueEffectKind> for Identifier
Source§fn from(value: EnchantmentValueEffectKind) -> Identifier
fn from(value: EnchantmentValueEffectKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EntityKind> for Identifier
impl<'a> From<EntityKind> for Identifier
Source§fn from(value: EntityKind) -> Identifier
fn from(value: EntityKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EntitySubPredicateKind> for Identifier
impl<'a> From<EntitySubPredicateKind> for Identifier
Source§fn from(value: EntitySubPredicateKind) -> Identifier
fn from(value: EntitySubPredicateKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<EnvironmentAttribute> for Identifier
impl<'a> From<EnvironmentAttribute> for Identifier
Source§fn from(value: EnvironmentAttribute) -> Identifier
fn from(value: EnvironmentAttribute) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<FloatProviderKind> for Identifier
impl<'a> From<FloatProviderKind> for Identifier
Source§fn from(value: FloatProviderKind) -> Identifier
fn from(value: FloatProviderKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<Fluid> for Identifier
impl<'a> From<Fluid> for Identifier
Source§fn from(value: Fluid) -> Identifier
fn from(value: Fluid) -> Identifier
Converts to this type from the input type.
§impl<'a> From<FoxVariantKind> for Identifier
impl<'a> From<FoxVariantKind> for Identifier
§fn from(value: FoxVariantKind) -> Identifier
fn from(value: FoxVariantKind) -> Identifier
Converts to this type from the input type.
§impl From<FrogVariant> for Identifier
impl From<FrogVariant> for Identifier
§fn from(registry: FrogVariant) -> Identifier
fn from(registry: FrogVariant) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<GameEvent> for Identifier
impl<'a> From<GameEvent> for Identifier
Source§fn from(value: GameEvent) -> Identifier
fn from(value: GameEvent) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<GameRule> for Identifier
impl<'a> From<GameRule> for Identifier
Source§fn from(value: GameRule) -> Identifier
fn from(value: GameRule) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<HeightProviderKind> for Identifier
impl<'a> From<HeightProviderKind> for Identifier
Source§fn from(value: HeightProviderKind) -> Identifier
fn from(value: HeightProviderKind) -> Identifier
Converts to this type from the input type.
§impl<'a> From<HorseVariantKind> for Identifier
impl<'a> From<HorseVariantKind> for Identifier
§fn from(value: HorseVariantKind) -> Identifier
fn from(value: HorseVariantKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<IncomingRpcMethods> for Identifier
impl<'a> From<IncomingRpcMethods> for Identifier
Source§fn from(value: IncomingRpcMethods) -> Identifier
fn from(value: IncomingRpcMethods) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<InputControlKind> for Identifier
impl<'a> From<InputControlKind> for Identifier
Source§fn from(value: InputControlKind) -> Identifier
fn from(value: InputControlKind) -> Identifier
Converts to this type from the input type.
§impl From<Instrument> for Identifier
impl From<Instrument> for Identifier
§fn from(registry: Instrument) -> Identifier
fn from(registry: Instrument) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<IntProviderKind> for Identifier
impl<'a> From<IntProviderKind> for Identifier
Source§fn from(value: IntProviderKind) -> Identifier
fn from(value: IntProviderKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<ItemKind> for Identifier
impl<'a> From<ItemKind> for Identifier
Source§fn from(value: ItemKind) -> Identifier
fn from(value: ItemKind) -> Identifier
Converts to this type from the input type.
§impl From<JukeboxSong> for Identifier
impl From<JukeboxSong> for Identifier
§fn from(registry: JukeboxSong) -> Identifier
fn from(registry: JukeboxSong) -> Identifier
Converts to this type from the input type.
§impl<'a> From<LlamaVariantKind> for Identifier
impl<'a> From<LlamaVariantKind> for Identifier
§fn from(value: LlamaVariantKind) -> Identifier
fn from(value: LlamaVariantKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<LootConditionKind> for Identifier
impl<'a> From<LootConditionKind> for Identifier
Source§fn from(value: LootConditionKind) -> Identifier
fn from(value: LootConditionKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<LootFunctionKind> for Identifier
impl<'a> From<LootFunctionKind> for Identifier
Source§fn from(value: LootFunctionKind) -> Identifier
fn from(value: LootFunctionKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<LootNbtProviderKind> for Identifier
impl<'a> From<LootNbtProviderKind> for Identifier
Source§fn from(value: LootNbtProviderKind) -> Identifier
fn from(value: LootNbtProviderKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<LootPoolEntryKind> for Identifier
impl<'a> From<LootPoolEntryKind> for Identifier
Source§fn from(value: LootPoolEntryKind) -> Identifier
fn from(value: LootPoolEntryKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<LootScoreProviderKind> for Identifier
impl<'a> From<LootScoreProviderKind> for Identifier
Source§fn from(value: LootScoreProviderKind) -> Identifier
fn from(value: LootScoreProviderKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<MapDecorationKind> for Identifier
impl<'a> From<MapDecorationKind> for Identifier
Source§fn from(value: MapDecorationKind) -> Identifier
fn from(value: MapDecorationKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<MemoryModuleKind> for Identifier
impl<'a> From<MemoryModuleKind> for Identifier
Source§fn from(value: MemoryModuleKind) -> Identifier
fn from(value: MemoryModuleKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<MenuKind> for Identifier
impl<'a> From<MenuKind> for Identifier
Source§fn from(value: MenuKind) -> Identifier
fn from(value: MenuKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<MobEffect> for Identifier
impl<'a> From<MobEffect> for Identifier
Source§fn from(value: MobEffect) -> Identifier
fn from(value: MobEffect) -> Identifier
Converts to this type from the input type.
§impl<'a> From<MooshroomVariantKind> for Identifier
impl<'a> From<MooshroomVariantKind> for Identifier
§fn from(value: MooshroomVariantKind) -> Identifier
fn from(value: MooshroomVariantKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<NumberFormatKind> for Identifier
impl<'a> From<NumberFormatKind> for Identifier
Source§fn from(value: NumberFormatKind) -> Identifier
fn from(value: NumberFormatKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<OutgoingRpcMethods> for Identifier
impl<'a> From<OutgoingRpcMethods> for Identifier
Source§fn from(value: OutgoingRpcMethods) -> Identifier
fn from(value: OutgoingRpcMethods) -> Identifier
Converts to this type from the input type.
§impl From<PaintingVariant> for Identifier
impl From<PaintingVariant> for Identifier
§fn from(registry: PaintingVariant) -> Identifier
fn from(registry: PaintingVariant) -> Identifier
Converts to this type from the input type.
§impl<'a> From<ParrotVariantKind> for Identifier
impl<'a> From<ParrotVariantKind> for Identifier
§fn from(value: ParrotVariantKind) -> Identifier
fn from(value: ParrotVariantKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<ParticleKind> for Identifier
impl<'a> From<ParticleKind> for Identifier
Source§fn from(value: ParticleKind) -> Identifier
fn from(value: ParticleKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<PermissionCheckKind> for Identifier
impl<'a> From<PermissionCheckKind> for Identifier
Source§fn from(value: PermissionCheckKind) -> Identifier
fn from(value: PermissionCheckKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<PermissionKind> for Identifier
impl<'a> From<PermissionKind> for Identifier
Source§fn from(value: PermissionKind) -> Identifier
fn from(value: PermissionKind) -> Identifier
Converts to this type from the input type.
§impl From<PigSoundVariant> for Identifier
impl From<PigSoundVariant> for Identifier
§fn from(registry: PigSoundVariant) -> Identifier
fn from(registry: PigSoundVariant) -> Identifier
Converts to this type from the input type.
§impl From<PigVariant> for Identifier
impl From<PigVariant> for Identifier
§fn from(registry: PigVariant) -> Identifier
fn from(registry: PigVariant) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<PointOfInterestKind> for Identifier
impl<'a> From<PointOfInterestKind> for Identifier
Source§fn from(value: PointOfInterestKind) -> Identifier
fn from(value: PointOfInterestKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<PosRuleTest> for Identifier
impl<'a> From<PosRuleTest> for Identifier
Source§fn from(value: PosRuleTest) -> Identifier
fn from(value: PosRuleTest) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<PositionSourceKind> for Identifier
impl<'a> From<PositionSourceKind> for Identifier
Source§fn from(value: PositionSourceKind) -> Identifier
fn from(value: PositionSourceKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<Potion> for Identifier
impl<'a> From<Potion> for Identifier
Source§fn from(value: Potion) -> Identifier
fn from(value: Potion) -> Identifier
Converts to this type from the input type.
§impl<'a> From<RabbitVariantKind> for Identifier
impl<'a> From<RabbitVariantKind> for Identifier
§fn from(value: RabbitVariantKind) -> Identifier
fn from(value: RabbitVariantKind) -> Identifier
Converts to this type from the input type.
§impl From<Recipe> for Identifier
impl From<Recipe> for Identifier
§fn from(registry: Recipe) -> Identifier
fn from(registry: Recipe) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<RecipeBookCategory> for Identifier
impl<'a> From<RecipeBookCategory> for Identifier
Source§fn from(value: RecipeBookCategory) -> Identifier
fn from(value: RecipeBookCategory) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<RecipeDisplay> for Identifier
impl<'a> From<RecipeDisplay> for Identifier
Source§fn from(value: RecipeDisplay) -> Identifier
fn from(value: RecipeDisplay) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<RecipeKind> for Identifier
impl<'a> From<RecipeKind> for Identifier
Source§fn from(value: RecipeKind) -> Identifier
fn from(value: RecipeKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<RecipeSerializer> for Identifier
impl<'a> From<RecipeSerializer> for Identifier
Source§fn from(value: RecipeSerializer) -> Identifier
fn from(value: RecipeSerializer) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<RuleBlockEntityModifier> for Identifier
impl<'a> From<RuleBlockEntityModifier> for Identifier
Source§fn from(value: RuleBlockEntityModifier) -> Identifier
fn from(value: RuleBlockEntityModifier) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<RuleTest> for Identifier
impl<'a> From<RuleTest> for Identifier
Source§fn from(value: RuleTest) -> Identifier
fn from(value: RuleTest) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<SensorKind> for Identifier
impl<'a> From<SensorKind> for Identifier
Source§fn from(value: SensorKind) -> Identifier
fn from(value: SensorKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<SlotDisplay> for Identifier
impl<'a> From<SlotDisplay> for Identifier
Source§fn from(value: SlotDisplay) -> Identifier
fn from(value: SlotDisplay) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<SlotSourceKind> for Identifier
impl<'a> From<SlotSourceKind> for Identifier
Source§fn from(value: SlotSourceKind) -> Identifier
fn from(value: SlotSourceKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<SoundEvent> for Identifier
impl<'a> From<SoundEvent> for Identifier
Source§fn from(value: SoundEvent) -> Identifier
fn from(value: SoundEvent) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<SpawnConditionKind> for Identifier
impl<'a> From<SpawnConditionKind> for Identifier
Source§fn from(value: SpawnConditionKind) -> Identifier
fn from(value: SpawnConditionKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<StatKind> for Identifier
impl<'a> From<StatKind> for Identifier
Source§fn from(value: StatKind) -> Identifier
fn from(value: StatKind) -> Identifier
Converts to this type from the input type.
§impl From<SulfurCubeArchetype> for Identifier
impl From<SulfurCubeArchetype> for Identifier
§fn from(registry: SulfurCubeArchetype) -> Identifier
fn from(registry: SulfurCubeArchetype) -> Identifier
Converts to this type from the input type.
§impl From<TestEnvironment> for Identifier
impl From<TestEnvironment> for Identifier
§fn from(registry: TestEnvironment) -> Identifier
fn from(registry: TestEnvironment) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<TestEnvironmentDefinitionKind> for Identifier
impl<'a> From<TestEnvironmentDefinitionKind> for Identifier
Source§fn from(value: TestEnvironmentDefinitionKind) -> Identifier
fn from(value: TestEnvironmentDefinitionKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<TestFunction> for Identifier
impl<'a> From<TestFunction> for Identifier
Source§fn from(value: TestFunction) -> Identifier
fn from(value: TestFunction) -> Identifier
Converts to this type from the input type.
§impl From<TestInstance> for Identifier
impl From<TestInstance> for Identifier
§fn from(registry: TestInstance) -> Identifier
fn from(registry: TestInstance) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<TestInstanceKind> for Identifier
impl<'a> From<TestInstanceKind> for Identifier
Source§fn from(value: TestInstanceKind) -> Identifier
fn from(value: TestInstanceKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<TicketKind> for Identifier
impl<'a> From<TicketKind> for Identifier
Source§fn from(value: TicketKind) -> Identifier
fn from(value: TicketKind) -> Identifier
Converts to this type from the input type.
§impl From<Timeline> for Identifier
impl From<Timeline> for Identifier
§fn from(registry: Timeline) -> Identifier
fn from(registry: Timeline) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<TriggerKind> for Identifier
impl<'a> From<TriggerKind> for Identifier
Source§fn from(value: TriggerKind) -> Identifier
fn from(value: TriggerKind) -> Identifier
Converts to this type from the input type.
§impl From<TrimMaterial> for Identifier
impl From<TrimMaterial> for Identifier
§fn from(registry: TrimMaterial) -> Identifier
fn from(registry: TrimMaterial) -> Identifier
Converts to this type from the input type.
§impl From<TrimPattern> for Identifier
impl From<TrimPattern> for Identifier
§fn from(registry: TrimPattern) -> Identifier
fn from(registry: TrimPattern) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<VillagerKind> for Identifier
impl<'a> From<VillagerKind> for Identifier
Source§fn from(value: VillagerKind) -> Identifier
fn from(value: VillagerKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<VillagerProfession> for Identifier
impl<'a> From<VillagerProfession> for Identifier
Source§fn from(value: VillagerProfession) -> Identifier
fn from(value: VillagerProfession) -> Identifier
Converts to this type from the input type.
§impl From<WolfSoundVariant> for Identifier
impl From<WolfSoundVariant> for Identifier
§fn from(registry: WolfSoundVariant) -> Identifier
fn from(registry: WolfSoundVariant) -> Identifier
Converts to this type from the input type.
§impl From<WolfVariant> for Identifier
impl From<WolfVariant> for Identifier
§fn from(registry: WolfVariant) -> Identifier
fn from(registry: WolfVariant) -> Identifier
Converts to this type from the input type.
§impl From<WorldClock> for Identifier
impl From<WorldClock> for Identifier
§fn from(registry: WorldClock) -> Identifier
fn from(registry: WorldClock) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenBiomeSource> for Identifier
impl<'a> From<WorldgenBiomeSource> for Identifier
Source§fn from(value: WorldgenBiomeSource) -> Identifier
fn from(value: WorldgenBiomeSource) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenBlockStateProviderKind> for Identifier
impl<'a> From<WorldgenBlockStateProviderKind> for Identifier
Source§fn from(value: WorldgenBlockStateProviderKind) -> Identifier
fn from(value: WorldgenBlockStateProviderKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenCarverKind> for Identifier
impl<'a> From<WorldgenCarverKind> for Identifier
Source§fn from(value: WorldgenCarverKind) -> Identifier
fn from(value: WorldgenCarverKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenChunkGenerator> for Identifier
impl<'a> From<WorldgenChunkGenerator> for Identifier
Source§fn from(value: WorldgenChunkGenerator) -> Identifier
fn from(value: WorldgenChunkGenerator) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenDensityFunctionKind> for Identifier
impl<'a> From<WorldgenDensityFunctionKind> for Identifier
Source§fn from(value: WorldgenDensityFunctionKind) -> Identifier
fn from(value: WorldgenDensityFunctionKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenFeatureKind> for Identifier
impl<'a> From<WorldgenFeatureKind> for Identifier
Source§fn from(value: WorldgenFeatureKind) -> Identifier
fn from(value: WorldgenFeatureKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenFeatureSizeKind> for Identifier
impl<'a> From<WorldgenFeatureSizeKind> for Identifier
Source§fn from(value: WorldgenFeatureSizeKind) -> Identifier
fn from(value: WorldgenFeatureSizeKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenFoliagePlacerKind> for Identifier
impl<'a> From<WorldgenFoliagePlacerKind> for Identifier
Source§fn from(value: WorldgenFoliagePlacerKind) -> Identifier
fn from(value: WorldgenFoliagePlacerKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenMaterialConditionKind> for Identifier
impl<'a> From<WorldgenMaterialConditionKind> for Identifier
Source§fn from(value: WorldgenMaterialConditionKind) -> Identifier
fn from(value: WorldgenMaterialConditionKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenMaterialRuleKind> for Identifier
impl<'a> From<WorldgenMaterialRuleKind> for Identifier
Source§fn from(value: WorldgenMaterialRuleKind) -> Identifier
fn from(value: WorldgenMaterialRuleKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenPlacementModifierKind> for Identifier
impl<'a> From<WorldgenPlacementModifierKind> for Identifier
Source§fn from(value: WorldgenPlacementModifierKind) -> Identifier
fn from(value: WorldgenPlacementModifierKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenPoolAliasBinding> for Identifier
impl<'a> From<WorldgenPoolAliasBinding> for Identifier
Source§fn from(value: WorldgenPoolAliasBinding) -> Identifier
fn from(value: WorldgenPoolAliasBinding) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenRootPlacerKind> for Identifier
impl<'a> From<WorldgenRootPlacerKind> for Identifier
Source§fn from(value: WorldgenRootPlacerKind) -> Identifier
fn from(value: WorldgenRootPlacerKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenStructureKind> for Identifier
impl<'a> From<WorldgenStructureKind> for Identifier
Source§fn from(value: WorldgenStructureKind) -> Identifier
fn from(value: WorldgenStructureKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenStructurePiece> for Identifier
impl<'a> From<WorldgenStructurePiece> for Identifier
Source§fn from(value: WorldgenStructurePiece) -> Identifier
fn from(value: WorldgenStructurePiece) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenStructurePlacement> for Identifier
impl<'a> From<WorldgenStructurePlacement> for Identifier
Source§fn from(value: WorldgenStructurePlacement) -> Identifier
fn from(value: WorldgenStructurePlacement) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenStructurePoolElement> for Identifier
impl<'a> From<WorldgenStructurePoolElement> for Identifier
Source§fn from(value: WorldgenStructurePoolElement) -> Identifier
fn from(value: WorldgenStructurePoolElement) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenStructureProcessor> for Identifier
impl<'a> From<WorldgenStructureProcessor> for Identifier
Source§fn from(value: WorldgenStructureProcessor) -> Identifier
fn from(value: WorldgenStructureProcessor) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenTreeDecoratorKind> for Identifier
impl<'a> From<WorldgenTreeDecoratorKind> for Identifier
Source§fn from(value: WorldgenTreeDecoratorKind) -> Identifier
fn from(value: WorldgenTreeDecoratorKind) -> Identifier
Converts to this type from the input type.
Source§impl<'a> From<WorldgenTrunkPlacerKind> for Identifier
impl<'a> From<WorldgenTrunkPlacerKind> for Identifier
Source§fn from(value: WorldgenTrunkPlacerKind) -> Identifier
fn from(value: WorldgenTrunkPlacerKind) -> Identifier
Converts to this type from the input type.
§impl From<ZombieNautilusVariant> for Identifier
impl From<ZombieNautilusVariant> for Identifier
§fn from(registry: ZombieNautilusVariant) -> Identifier
fn from(registry: ZombieNautilusVariant) -> Identifier
Converts to this type from the input type.
Source§impl FromStr for Identifier
impl FromStr for Identifier
Source§impl Hash for Identifier
impl Hash for Identifier
Source§impl Ord for Identifier
impl Ord for Identifier
Source§fn cmp(&self, other: &Identifier) -> Ordering
fn cmp(&self, other: &Identifier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Identifier
impl PartialEq for Identifier
Source§impl PartialOrd for Identifier
impl PartialOrd for Identifier
Auto Trait Implementations§
impl Forget for Identifier
impl Freeze for Identifier
impl Move for Identifier
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnsafeUnpin for Identifierwhere
NonZeroUsizeInner: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
&'static str: UnsafeUnpin,
impl UnwindSafe for Identifier
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> ConditionalSend for Twhere
T: Send,
§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.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> FromTemplate for T
impl<T> FromTemplate for T
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§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<A, B> Interchangeable<A> for B
impl<A, B> Interchangeable<A> for B
fn interchangeable_into(self) -> A
fn interchangeable_from(other: A) -> B
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> Template for T
impl<T> Template for T
§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
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
fn clone_template(&self) -> T
Clones this template. See
Clone.§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more§impl<T> TypeData for T
impl<T> TypeData for T
§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of
self.