pub struct BlockColor {
pub flags: BitFlags<BlockFlag>,
pub color: Color,
}
Expand description
A block type specification
Fields§
§flags: BitFlags<BlockFlag>
Bit set of BlockFlags describing special properties of the block type
color: Color
Base color of the block type
Implementations§
Trait Implementations§
Source§impl<'de, Context> BorrowDecode<'de, Context> for BlockColor
impl<'de, Context> BorrowDecode<'de, Context> for BlockColor
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for BlockColor
impl Clone for BlockColor
Source§fn clone(&self) -> BlockColor
fn clone(&self) -> BlockColor
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlockColor
impl Debug for BlockColor
Source§impl<Context> Decode<Context> for BlockColor
impl<Context> Decode<Context> for BlockColor
Source§impl Encode for BlockColor
impl Encode for BlockColor
impl Copy for BlockColor
Auto Trait Implementations§
impl Freeze for BlockColor
impl RefUnwindSafe for BlockColor
impl Send for BlockColor
impl Sync for BlockColor
impl Unpin for BlockColor
impl UnwindSafe for BlockColor
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