Enum PackSource
#[non_exhaustive]pub enum PackSource {
BuiltIn,
Feature,
}Expand description
How a pack is labelled in the selection screen. Feature packs also appear among the world’s experiments when their metadata declares feature flags.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BuiltIn
A pack supplied by a mod, labelled as built in.
Feature
An optional experiment described by its pack.mcmeta feature flags.
Trait Implementations§
§impl Clone for PackSource
impl Clone for PackSource
§fn clone(&self) -> PackSource
fn clone(&self) -> PackSource
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 PackSource
§impl Debug for PackSource
impl Debug for PackSource
impl Eq for PackSource
§impl PartialEq for PackSource
impl PartialEq for PackSource
impl StructuralPartialEq for PackSource
Auto Trait Implementations§
impl Freeze for PackSource
impl RefUnwindSafe for PackSource
impl Send for PackSource
impl Sync for PackSource
impl Unpin for PackSource
impl UnsafeUnpin for PackSource
impl UnwindSafe for PackSource
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