pub struct ImageLayer {
pub image: PathBuf,
pub transparent_color: Color,
}
Expand description
Contains a file path to an image plus a mix colour
Fields§
§image: PathBuf
Image used by this layer
transparent_color: Color
Defaults to 0,0,0,0 (rgba)
Trait Implementations§
Source§impl Clone for ImageLayer
impl Clone for ImageLayer
Source§fn clone(&self) -> ImageLayer
fn clone(&self) -> ImageLayer
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 ImageLayer
impl Debug for ImageLayer
Source§impl<'de> Deserialize<'de> for ImageLayer
impl<'de> Deserialize<'de> for ImageLayer
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 PartialEq for ImageLayer
impl PartialEq for ImageLayer
impl StructuralPartialEq for ImageLayer
Auto Trait Implementations§
impl Freeze for ImageLayer
impl RefUnwindSafe for ImageLayer
impl Send for ImageLayer
impl Sync for ImageLayer
impl Unpin for ImageLayer
impl UnwindSafe for ImageLayer
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