Skip to main content

Identifier

Struct Identifier 

Source
pub struct Identifier { /* private fields */ }
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.

Implementations§

Source§

impl Identifier

Source

pub fn new(resource_string: impl Into<String>) -> Identifier

Source

pub fn namespace(&self) -> &str

Source

pub fn path(&self) -> &str

Trait Implementations§

Source§

impl AzBuf for Identifier

Source§

fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Identifier, BufReadError>

Source§

fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl Clone for Identifier

Source§

fn clone(&self) -> Identifier

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Identifier

Source§

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

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

impl Default for Identifier

Source§

fn default() -> Identifier

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

impl<'de> Deserialize<'de> for Identifier

Available on crate feature serde only.
Source§

fn deserialize<D>( deserializer: D, ) -> Result<Identifier, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Identifier

Source§

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

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

impl From<&str> for Identifier

Source§

fn from(s: &str) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<AbstractBlockKind> for Identifier

Source§

fn from(value: AbstractBlockKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<Activity> for Identifier

Source§

fn from(value: Activity) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<Attribute> for Identifier

Source§

fn from(value: Attribute) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<AttributeKind> for Identifier

Source§

fn from(value: AttributeKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<BannerPatternKey<&Identifier>> for Identifier

Source§

fn from(registry: BannerPatternKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<BannerPatternKey> for Identifier

Source§

fn from(registry: BannerPatternKey) -> Identifier

Converts to this type from the input type.
Source§

impl From<BiomeKey<&Identifier>> for Identifier

Source§

fn from(registry: BiomeKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<BiomeKey> for Identifier

Source§

fn from(registry: BiomeKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<BlockEntityKind> for Identifier

Source§

fn from(value: BlockEntityKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<BlockKind> for Identifier

Source§

fn from(value: BlockKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<BlockPredicateKind> for Identifier

Source§

fn from(value: BlockPredicateKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<CatVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: CatVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<CatVariantKey> for Identifier

Source§

fn from(registry: CatVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl From<ChatKindKey<&Identifier>> for Identifier

Source§

fn from(registry: ChatKindKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<ChatKindKey> for Identifier

Source§

fn from(registry: ChatKindKey) -> Identifier

Converts to this type from the input type.
Source§

impl From<ChickenVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: ChickenVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<ChickenVariantKey> for Identifier

Source§

fn from(registry: ChickenVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<ChunkStatus> for Identifier

Source§

fn from(value: ChunkStatus) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<CommandArgumentKind> for Identifier

Source§

fn from(value: CommandArgumentKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<ConsumeEffectKind> for Identifier

Source§

fn from(value: ConsumeEffectKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<CowVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: CowVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<CowVariantKey> for Identifier

Source§

fn from(registry: CowVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<CreativeModeTab> for Identifier

Source§

fn from(value: CreativeModeTab) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<CustomStat> for Identifier

Source§

fn from(value: CustomStat) -> Identifier

Converts to this type from the input type.
Source§

impl From<DamageKindKey<&Identifier>> for Identifier

Source§

fn from(registry: DamageKindKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<DamageKindKey> for Identifier

Source§

fn from(registry: DamageKindKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<DataComponentKind> for Identifier

Source§

fn from(value: DataComponentKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<DataComponentPredicateKind> for Identifier

Source§

fn from(value: DataComponentPredicateKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<DebugSubscription> for Identifier

Source§

fn from(value: DebugSubscription) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<DecoratedPotPattern> for Identifier

Source§

fn from(value: DecoratedPotPattern) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<DialogActionKind> for Identifier

Source§

fn from(value: DialogActionKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<DialogBodyKind> for Identifier

Source§

fn from(value: DialogBodyKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<DialogKey<&Identifier>> for Identifier

Source§

fn from(registry: DialogKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<DialogKey> for Identifier

Source§

fn from(registry: DialogKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<DialogKind> for Identifier

Source§

fn from(value: DialogKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<DimensionKindKey<&Identifier>> for Identifier

Source§

fn from(registry: DimensionKindKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<DimensionKindKey> for Identifier

Source§

fn from(registry: DimensionKindKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EnchantmentEffectComponentKind> for Identifier

Source§

fn from(value: EnchantmentEffectComponentKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EnchantmentEntityEffectKind> for Identifier

Source§

fn from(value: EnchantmentEntityEffectKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<EnchantmentKey<&Identifier>> for Identifier

Source§

fn from(registry: EnchantmentKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<EnchantmentKey> for Identifier

Source§

fn from(registry: EnchantmentKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EnchantmentLevelBasedValueKind> for Identifier

Source§

fn from(value: EnchantmentLevelBasedValueKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EnchantmentLocationBasedEffectKind> for Identifier

Source§

fn from(value: EnchantmentLocationBasedEffectKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<EnchantmentProviderKey<&Identifier>> for Identifier

Source§

fn from(registry: EnchantmentProviderKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<EnchantmentProviderKey> for Identifier

Source§

fn from(registry: EnchantmentProviderKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EnchantmentProviderKind> for Identifier

Source§

fn from(value: EnchantmentProviderKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EnchantmentValueEffectKind> for Identifier

Source§

fn from(value: EnchantmentValueEffectKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EntityKind> for Identifier

Source§

fn from(value: EntityKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EntitySubPredicateKind> for Identifier

Source§

fn from(value: EntitySubPredicateKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<EnvironmentAttribute> for Identifier

Source§

fn from(value: EnvironmentAttribute) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<FloatProviderKind> for Identifier

Source§

fn from(value: FloatProviderKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<Fluid> for Identifier

Source§

fn from(value: Fluid) -> Identifier

Converts to this type from the input type.
Source§

impl From<FrogVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: FrogVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<FrogVariantKey> for Identifier

Source§

fn from(registry: FrogVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<GameEvent> for Identifier

Source§

fn from(value: GameEvent) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<GameRule> for Identifier

Source§

fn from(value: GameRule) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<HeightProviderKind> for Identifier

Source§

fn from(value: HeightProviderKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<IncomingRpcMethods> for Identifier

Source§

fn from(value: IncomingRpcMethods) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<InputControlKind> for Identifier

Source§

fn from(value: InputControlKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<InstrumentKey<&Identifier>> for Identifier

Source§

fn from(registry: InstrumentKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<InstrumentKey> for Identifier

Source§

fn from(registry: InstrumentKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<IntProviderKind> for Identifier

Source§

fn from(value: IntProviderKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<ItemKind> for Identifier

Source§

fn from(value: ItemKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<JukeboxSongKey<&Identifier>> for Identifier

Source§

fn from(registry: JukeboxSongKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<JukeboxSongKey> for Identifier

Source§

fn from(registry: JukeboxSongKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<LootConditionKind> for Identifier

Source§

fn from(value: LootConditionKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<LootFunctionKind> for Identifier

Source§

fn from(value: LootFunctionKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<LootNbtProviderKind> for Identifier

Source§

fn from(value: LootNbtProviderKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<LootNumberProviderKind> for Identifier

Source§

fn from(value: LootNumberProviderKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<LootPoolEntryKind> for Identifier

Source§

fn from(value: LootPoolEntryKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<LootScoreProviderKind> for Identifier

Source§

fn from(value: LootScoreProviderKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<MapDecorationKind> for Identifier

Source§

fn from(value: MapDecorationKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<MemoryModuleKind> for Identifier

Source§

fn from(value: MemoryModuleKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<MenuKind> for Identifier

Source§

fn from(value: MenuKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<MobEffect> for Identifier

Source§

fn from(value: MobEffect) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<NumberFormatKind> for Identifier

Source§

fn from(value: NumberFormatKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<OutgoingRpcMethods> for Identifier

Source§

fn from(value: OutgoingRpcMethods) -> Identifier

Converts to this type from the input type.
Source§

impl From<PaintingVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: PaintingVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<PaintingVariantKey> for Identifier

Source§

fn from(registry: PaintingVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<ParticleKind> for Identifier

Source§

fn from(value: ParticleKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<PermissionCheckKind> for Identifier

Source§

fn from(value: PermissionCheckKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<PermissionKind> for Identifier

Source§

fn from(value: PermissionKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<PigVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: PigVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<PigVariantKey> for Identifier

Source§

fn from(registry: PigVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<PointOfInterestKind> for Identifier

Source§

fn from(value: PointOfInterestKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<PosRuleTest> for Identifier

Source§

fn from(value: PosRuleTest) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<PositionSourceKind> for Identifier

Source§

fn from(value: PositionSourceKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<Potion> for Identifier

Source§

fn from(value: Potion) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<RecipeBookCategory> for Identifier

Source§

fn from(value: RecipeBookCategory) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<RecipeDisplay> for Identifier

Source§

fn from(value: RecipeDisplay) -> Identifier

Converts to this type from the input type.
Source§

impl From<RecipeKey<&Identifier>> for Identifier

Source§

fn from(registry: RecipeKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<RecipeKey> for Identifier

Source§

fn from(registry: RecipeKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<RecipeKind> for Identifier

Source§

fn from(value: RecipeKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<RecipeSerializer> for Identifier

Source§

fn from(value: RecipeSerializer) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<RuleBlockEntityModifier> for Identifier

Source§

fn from(value: RuleBlockEntityModifier) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<RuleTest> for Identifier

Source§

fn from(value: RuleTest) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<SensorKind> for Identifier

Source§

fn from(value: SensorKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<SlotDisplay> for Identifier

Source§

fn from(value: SlotDisplay) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<SlotSourceKind> for Identifier

Source§

fn from(value: SlotSourceKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<SoundEvent> for Identifier

Source§

fn from(value: SoundEvent) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<SpawnConditionKind> for Identifier

Source§

fn from(value: SpawnConditionKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<StatKind> for Identifier

Source§

fn from(value: StatKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<TestEnvironmentDefinitionKind> for Identifier

Source§

fn from(value: TestEnvironmentDefinitionKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<TestEnvironmentKey<&Identifier>> for Identifier

Source§

fn from(registry: TestEnvironmentKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<TestEnvironmentKey> for Identifier

Source§

fn from(registry: TestEnvironmentKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<TestFunction> for Identifier

Source§

fn from(value: TestFunction) -> Identifier

Converts to this type from the input type.
Source§

impl From<TestInstanceKey<&Identifier>> for Identifier

Source§

fn from(registry: TestInstanceKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<TestInstanceKey> for Identifier

Source§

fn from(registry: TestInstanceKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<TestInstanceKind> for Identifier

Source§

fn from(value: TestInstanceKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<TicketKind> for Identifier

Source§

fn from(value: TicketKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<TimelineKey<&Identifier>> for Identifier

Source§

fn from(registry: TimelineKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<TimelineKey> for Identifier

Source§

fn from(registry: TimelineKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<TriggerKind> for Identifier

Source§

fn from(value: TriggerKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<TrimMaterialKey<&Identifier>> for Identifier

Source§

fn from(registry: TrimMaterialKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<TrimMaterialKey> for Identifier

Source§

fn from(registry: TrimMaterialKey) -> Identifier

Converts to this type from the input type.
Source§

impl From<TrimPatternKey<&Identifier>> for Identifier

Source§

fn from(registry: TrimPatternKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<TrimPatternKey> for Identifier

Source§

fn from(registry: TrimPatternKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<VillagerKind> for Identifier

Source§

fn from(value: VillagerKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<VillagerProfession> for Identifier

Source§

fn from(value: VillagerProfession) -> Identifier

Converts to this type from the input type.
Source§

impl From<WolfSoundVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: WolfSoundVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<WolfSoundVariantKey> for Identifier

Source§

fn from(registry: WolfSoundVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl From<WolfVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: WolfVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<WolfVariantKey> for Identifier

Source§

fn from(registry: WolfVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenBiomeSource> for Identifier

Source§

fn from(value: WorldgenBiomeSource) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenBlockStateProviderKind> for Identifier

Source§

fn from(value: WorldgenBlockStateProviderKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenCarver> for Identifier

Source§

fn from(value: WorldgenCarver) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenChunkGenerator> for Identifier

Source§

fn from(value: WorldgenChunkGenerator) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenDensityFunctionKind> for Identifier

Source§

fn from(value: WorldgenDensityFunctionKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenFeature> for Identifier

Source§

fn from(value: WorldgenFeature) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenFeatureSizeKind> for Identifier

Source§

fn from(value: WorldgenFeatureSizeKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenFoliagePlacerKind> for Identifier

Source§

fn from(value: WorldgenFoliagePlacerKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenMaterialCondition> for Identifier

Source§

fn from(value: WorldgenMaterialCondition) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenMaterialRule> for Identifier

Source§

fn from(value: WorldgenMaterialRule) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenPlacementModifierKind> for Identifier

Source§

fn from(value: WorldgenPlacementModifierKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenPoolAliasBinding> for Identifier

Source§

fn from(value: WorldgenPoolAliasBinding) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenRootPlacerKind> for Identifier

Source§

fn from(value: WorldgenRootPlacerKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenStructureKind> for Identifier

Source§

fn from(value: WorldgenStructureKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenStructurePiece> for Identifier

Source§

fn from(value: WorldgenStructurePiece) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenStructurePlacement> for Identifier

Source§

fn from(value: WorldgenStructurePlacement) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenStructurePoolElement> for Identifier

Source§

fn from(value: WorldgenStructurePoolElement) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenStructureProcessor> for Identifier

Source§

fn from(value: WorldgenStructureProcessor) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenTreeDecoratorKind> for Identifier

Source§

fn from(value: WorldgenTreeDecoratorKind) -> Identifier

Converts to this type from the input type.
Source§

impl<'a> From<WorldgenTrunkPlacerKind> for Identifier

Source§

fn from(value: WorldgenTrunkPlacerKind) -> Identifier

Converts to this type from the input type.
Source§

impl From<ZombieNautilusVariantKey<&Identifier>> for Identifier

Source§

fn from(registry: ZombieNautilusVariantKey<&Identifier>) -> Identifier

Converts to this type from the input type.
Source§

impl From<ZombieNautilusVariantKey> for Identifier

Source§

fn from(registry: ZombieNautilusVariantKey) -> Identifier

Converts to this type from the input type.
Source§

impl FromNbtTag for Identifier

Source§

fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Identifier>

§

fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>

Source§

impl FromStr for Identifier

Source§

type Err = &'static str

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Identifier, <Identifier as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for Identifier

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Identifier

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Identifier

Available on crate feature serde only.
Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToNbtTag for Identifier

Source§

fn to_nbt_tag(self) -> NbtTag

§

fn to_optional_nbt_tag(self) -> Option<NbtTag>

Source§

impl<'a> TryFrom<&'a Identifier> for EntityKind

Source§

type Error = ()

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

fn try_from( ident: &'a Identifier, ) -> Result<EntityKind, <EntityKind as TryFrom<&'a Identifier>>::Error>

Performs the conversion.
Source§

impl Eq for Identifier

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
§

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

impl<T> DynEq for T
where T: Any + Eq,

§

fn dyn_eq(&self, other: &(dyn DynEq + 'static)) -> bool

This method tests for self and other values to be equal. Read more
§

impl<T> DynHash for T
where T: DynEq + Hash,

§

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn from_world(_world: &mut World) -> T

Creates Self using default().

§

impl<T> Instrument for T

§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

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

Source§

fn into(self) -> U

Calls U::from(self).

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

§

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

§

impl<T> ToCompactString for T
where T: Display,

§

fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>

Fallible version of [ToCompactString::to_compact_string()] Read more
§

fn to_compact_string(&self) -> CompactString

Converts the given value to a [CompactString]. Read more
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> ToStringFallible for T
where T: Display,

§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

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 this value.
§

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
§

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

Source§

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