pub enum Palette<S: PalletedContainerKind> {
SingleValue(S),
Linear(Vec<S>),
Hashmap(Vec<S>),
Global,
}
Expand description
A representation of the different types of chunk palettes Minecraft uses.
Variants§
SingleValue(S)
ID of the corresponding entry in its global palette
Linear(Vec<S>)
Hashmap(Vec<S>)
Global
Implementations§
Trait Implementations§
Source§impl<S: PalletedContainerKind> AzaleaWrite for Palette<S>
impl<S: PalletedContainerKind> AzaleaWrite for Palette<S>
Source§impl<S: PalletedContainerKind> From<&Palette<S>> for PaletteKind
impl<S: PalletedContainerKind> From<&Palette<S>> for PaletteKind
Auto Trait Implementations§
impl<S> Freeze for Palette<S>where
S: Freeze,
impl<S> RefUnwindSafe for Palette<S>where
S: RefUnwindSafe,
impl<S> Send for Palette<S>where
S: Send,
impl<S> Sync for Palette<S>where
S: Sync,
impl<S> Unpin for Palette<S>where
S: Unpin,
impl<S> UnwindSafe for Palette<S>where
S: UnwindSafe,
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn 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>
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)
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)
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.