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: ColorBase color of the block type
Implementations§
Trait Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockColor
impl Debug for BlockColor
Source§impl<'de> Deserialize<'de> for BlockColor
impl<'de> Deserialize<'de> for BlockColor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BlockColor
impl Serialize 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 UnsafeUnpin 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