pub enum VillagerProfession {
Show 15 variants
None = 0,
Armorer = 1,
Butcher = 2,
Cartographer = 3,
Cleric = 4,
Farmer = 5,
Fisherman = 6,
Fletcher = 7,
Leatherworker = 8,
Librarian = 9,
Mason = 10,
Nitwit = 11,
Shepherd = 12,
Toolsmith = 13,
Weaponsmith = 14,
}Expand description
A built-in villager profession.
Variants§
None = 0
Armorer = 1
Butcher = 2
Cartographer = 3
Cleric = 4
Farmer = 5
Fisherman = 6
Fletcher = 7
Leatherworker = 8
Librarian = 9
Mason = 10
Nitwit = 11
Shepherd = 12
Toolsmith = 13
Weaponsmith = 14
Trait Implementations§
Source§impl Clone for VillagerProfession
impl Clone for VillagerProfession
Source§fn clone(&self) -> VillagerProfession
fn clone(&self) -> VillagerProfession
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 moreimpl Copy for VillagerProfession
Source§impl Debug for VillagerProfession
impl Debug for VillagerProfession
impl Eq for VillagerProfession
Source§impl Hash for VillagerProfession
impl Hash for VillagerProfession
Source§impl PartialEq for VillagerProfession
impl PartialEq for VillagerProfession
Source§impl ProtocolEnum for VillagerProfession
impl ProtocolEnum for VillagerProfession
impl StructuralPartialEq for VillagerProfession
Auto Trait Implementations§
impl Freeze for VillagerProfession
impl RefUnwindSafe for VillagerProfession
impl Send for VillagerProfession
impl Sync for VillagerProfession
impl Unpin for VillagerProfession
impl UnsafeUnpin for VillagerProfession
impl UnwindSafe for VillagerProfession
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.