Struct FeatureFlags
pub struct FeatureFlags(/* private fields */);Expand description
The feature flags a world enables (FeatureFlagSet, LevelReader.enabledFeatures), each
as its id (minecraft:vanilla, minecraft:redstone_experiments), shared with the world.
A world that names none enables minecraft:vanilla alone, as vanilla’s default does.
Getting and reading it allocates nothing.
Implementations§
§impl FeatureFlags
impl FeatureFlags
Trait Implementations§
§impl Clone for FeatureFlags
impl Clone for FeatureFlags
§fn clone(&self) -> FeatureFlags
fn clone(&self) -> FeatureFlags
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 more§impl Debug for FeatureFlags
impl Debug for FeatureFlags
impl Eq for FeatureFlags
§impl From<&FeatureFlags> for Vec<String>
The flags as their ids, the form they cross into a wasm mod as.
impl From<&FeatureFlags> for Vec<String>
The flags as their ids, the form they cross into a wasm mod as.
§fn from(flags: &FeatureFlags) -> Vec<String>
fn from(flags: &FeatureFlags) -> Vec<String>
Converts to this type from the input type.
§impl From<Vec<String>> for FeatureFlags
impl From<Vec<String>> for FeatureFlags
§fn from(ids: Vec<String>) -> FeatureFlags
fn from(ids: Vec<String>) -> FeatureFlags
Converts to this type from the input type.
§impl PartialEq for FeatureFlags
impl PartialEq for FeatureFlags
impl StructuralPartialEq for FeatureFlags
§impl Wire for FeatureFlags
impl Wire for FeatureFlags
Auto Trait Implementations§
impl Freeze for FeatureFlags
impl RefUnwindSafe for FeatureFlags
impl Send for FeatureFlags
impl Sync for FeatureFlags
impl Unpin for FeatureFlags
impl UnsafeUnpin for FeatureFlags
impl UnwindSafe for FeatureFlags
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