pub struct DefaultContainerStyles { /* private fields */ }Expand description
The default container widget styles.
Implementations§
source§impl DefaultContainerStyles
impl DefaultContainerStyles
sourcepub fn new(foreground: Color, background: Color) -> Self
pub fn new(foreground: Color, background: Color) -> Self
Create new default container styles with given colors.
sourcepub fn foreground(&self) -> Color
pub fn foreground(&self) -> Color
Get the default foreground color.
sourcepub fn background(&self) -> Color
pub fn background(&self) -> Color
Get the default background color.
Trait Implementations§
source§impl Clone for DefaultContainerStyles
impl Clone for DefaultContainerStyles
source§fn clone(&self) -> DefaultContainerStyles
fn clone(&self) -> DefaultContainerStyles
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 DefaultContainerStyles
impl Debug for DefaultContainerStyles
source§impl Default for DefaultContainerStyles
impl Default for DefaultContainerStyles
source§fn default() -> DefaultContainerStyles
fn default() -> DefaultContainerStyles
Returns the “default value” for a type. Read more
source§impl Hash for DefaultContainerStyles
impl Hash for DefaultContainerStyles
source§impl Ord for DefaultContainerStyles
impl Ord for DefaultContainerStyles
source§fn cmp(&self, other: &DefaultContainerStyles) -> Ordering
fn cmp(&self, other: &DefaultContainerStyles) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DefaultContainerStyles
impl PartialEq for DefaultContainerStyles
source§impl PartialOrd for DefaultContainerStyles
impl PartialOrd for DefaultContainerStyles
impl Eq for DefaultContainerStyles
impl StructuralPartialEq for DefaultContainerStyles
Auto Trait Implementations§
impl Freeze for DefaultContainerStyles
impl RefUnwindSafe for DefaultContainerStyles
impl Send for DefaultContainerStyles
impl Sync for DefaultContainerStyles
impl Unpin for DefaultContainerStyles
impl UnwindSafe for DefaultContainerStyles
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more