Enum iced_core::Background
source · pub enum Background {
Color(Color),
Gradient(Gradient),
}
Expand description
The background of some element.
Variants§
Trait Implementations§
source§impl Clone for Background
impl Clone for Background
source§fn clone(&self) -> Background
fn clone(&self) -> Background
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 Background
impl Debug for Background
source§impl From<Color> for Background
impl From<Color> for Background
source§impl From<Gradient> for Background
impl From<Gradient> for Background
source§impl From<Linear> for Background
impl From<Linear> for Background
source§impl PartialEq for Background
impl PartialEq for Background
source§fn eq(&self, other: &Background) -> bool
fn eq(&self, other: &Background) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Background
impl StructuralPartialEq for Background
Auto Trait Implementations§
impl RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl UnwindSafe for Background
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