Enum attheme::ColorSignature
source · pub enum ColorSignature {
Hex,
Int,
}
Expand description
Determines how to serialize colors. Used by Attheme.to_bytes
.
Variants
Hex
Represents colors as #aarrggbb.
[0xff; 4]
becomes #ffffffff
, [0x10, 0x20, 0x30, 0x40]
becomes
#40102030
.
Int
Represents colors as Java Color Integers.
[0xff; 4]
becomes -1
, and [0x10, 0x20, 0x30, 0x40]
becomes
1074798640
. See the guide to .attheme’s to learn about this color
representation.
Trait Implementations
sourceimpl Clone for ColorSignature
impl Clone for ColorSignature
sourcefn clone(&self) -> ColorSignature
fn clone(&self) -> ColorSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ColorSignature
impl Debug for ColorSignature
sourceimpl PartialEq<ColorSignature> for ColorSignature
impl PartialEq<ColorSignature> for ColorSignature
sourcefn eq(&self, other: &ColorSignature) -> bool
fn eq(&self, other: &ColorSignature) -> bool
impl Copy for ColorSignature
impl StructuralPartialEq for ColorSignature
Auto Trait Implementations
impl RefUnwindSafe for ColorSignature
impl Send for ColorSignature
impl Sync for ColorSignature
impl Unpin for ColorSignature
impl UnwindSafe for ColorSignature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more