pub struct Base16 {
pub colors: [Color; 16],
}Expand description
Fields§
§colors: [Color; 16]Implementations§
Source§impl Base16
impl Base16
Sourcepub fn from_hex(hex: [u32; 16]) -> Self
pub fn from_hex(hex: [u32; 16]) -> Self
https://github.com/tinted-theming/schemes/tree/spec-0.11/base16 Use normal hex colors and just remove # from the front and replace it with 0x
let theme = Theme::from_base16(Base16::from_hex([
0x11121d, 0x1A1B2A, 0x212234, 0x282c34, 0x4a5057, 0xa0a8cd, 0xa0a8cd, 0xa0a8cd, 0xee6d85,
0xf6955b, 0xd7a65f, 0x95c561, 0x38a89d, 0x7199ee, 0xa485dd, 0x773440,
]));Trait Implementations§
impl Copy for Base16
Source§impl<'de> Deserialize<'de> for Base16
impl<'de> Deserialize<'de> for Base16
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
Auto Trait Implementations§
impl Freeze for Base16
impl RefUnwindSafe for Base16
impl Send for Base16
impl Sync for Base16
impl Unpin for Base16
impl UnsafeUnpin for Base16
impl UnwindSafe for Base16
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