pub struct JascPalette {
pub colors: Vec<Color>,
}
Fields§
§colors: Vec<Color>
Implementations§
Source§impl JascPalette
impl JascPalette
pub const fn new(colors: Vec<Color>) -> JascPalette
pub fn from(colors: &[Color]) -> JascPalette
Source§impl JascPalette
impl JascPalette
pub fn to_file_contents(&self) -> String
pub fn from_file_contents(text: &str) -> Result<JascPalette, PaletteError>
Trait Implementations§
Source§impl Clone for JascPalette
impl Clone for JascPalette
Source§fn clone(&self) -> JascPalette
fn clone(&self) -> JascPalette
Returns a copy of the value. Read more
1.0.0 · 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 JascPalette
impl Debug for JascPalette
Source§impl PartialEq for JascPalette
impl PartialEq for JascPalette
impl Eq for JascPalette
impl StructuralPartialEq for JascPalette
Auto Trait Implementations§
impl Freeze for JascPalette
impl RefUnwindSafe for JascPalette
impl Send for JascPalette
impl Sync for JascPalette
impl Unpin for JascPalette
impl UnwindSafe for JascPalette
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