pub struct DefaultStyles { /* private fields */ }Expand description
Default widget styles.
Implementations§
source§impl DefaultStyles
impl DefaultStyles
sourcepub fn new(
text: DefaultTextStyles,
container: DefaultContainerStyles,
interactive: DefaultInteractiveStyles,
) -> Self
pub fn new( text: DefaultTextStyles, container: DefaultContainerStyles, interactive: DefaultInteractiveStyles, ) -> Self
Create new default styles with given styles.
sourcepub fn text(&self) -> &DefaultTextStyles
pub fn text(&self) -> &DefaultTextStyles
Get the default styles for text widgets.
sourcepub fn container(&self) -> &DefaultContainerStyles
pub fn container(&self) -> &DefaultContainerStyles
Get the default styles for container widgets.
sourcepub fn interactive(&self) -> &DefaultInteractiveStyles
pub fn interactive(&self) -> &DefaultInteractiveStyles
Get the default styles for interactive widgets.
Trait Implementations§
source§impl Clone for DefaultStyles
impl Clone for DefaultStyles
source§fn clone(&self) -> DefaultStyles
fn clone(&self) -> DefaultStyles
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 DefaultStyles
impl Debug for DefaultStyles
source§impl Default for DefaultStyles
impl Default for DefaultStyles
source§fn default() -> DefaultStyles
fn default() -> DefaultStyles
Returns the “default value” for a type. Read more
source§impl Hash for DefaultStyles
impl Hash for DefaultStyles
source§impl Ord for DefaultStyles
impl Ord for DefaultStyles
source§fn cmp(&self, other: &DefaultStyles) -> Ordering
fn cmp(&self, other: &DefaultStyles) -> 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 DefaultStyles
impl PartialEq for DefaultStyles
source§impl PartialOrd for DefaultStyles
impl PartialOrd for DefaultStyles
impl Eq for DefaultStyles
impl StructuralPartialEq for DefaultStyles
Auto Trait Implementations§
impl Freeze for DefaultStyles
impl RefUnwindSafe for DefaultStyles
impl Send for DefaultStyles
impl Sync for DefaultStyles
impl Unpin for DefaultStyles
impl UnwindSafe for DefaultStyles
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