Enum entmet_lib::datatypes::villager_data::VillagerType
source · #[repr(u8)]pub enum VillagerType {
Desert = 0,
Jungle = 1,
Plains = 2,
Savanna = 3,
Snow = 4,
Swamp = 5,
Taiga = 6,
}Expand description
An enum of all villager types.
Variants§
Desert = 0
Villager from a desert village.
Jungle = 1
Villager from a jungle village.
Plains = 2
Villager from a plains village, this is the default
Savanna = 3
Villager from a savanna village.
Snow = 4
Villager from a snow village.
Swamp = 5
Villager from a swamp village.
Taiga = 6
Villager from a taiga village.
Trait Implementations§
source§impl Debug for VillagerType
impl Debug for VillagerType
source§impl Default for VillagerType
impl Default for VillagerType
source§fn default() -> VillagerType
fn default() -> VillagerType
Returns the “default value” for a type. Read more
source§impl PartialEq for VillagerType
impl PartialEq for VillagerType
source§fn eq(&self, other: &VillagerType) -> bool
fn eq(&self, other: &VillagerType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for VillagerType
impl StructuralPartialEq for VillagerType
Auto Trait Implementations§
impl Freeze for VillagerType
impl RefUnwindSafe for VillagerType
impl Send for VillagerType
impl Sync for VillagerType
impl Unpin for VillagerType
impl UnwindSafe for VillagerType
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