Struct freya_hooks::BodyTheme
source · pub struct BodyTheme {
pub background: Cow<'static, str>,
pub color: Cow<'static, str>,
pub padding: Cow<'static, str>,
}Expand description
Theming properties for the Body component.
Fields§
§background: Cow<'static, str>§color: Cow<'static, str>§padding: Cow<'static, str>Implementations§
source§impl BodyTheme
impl BodyTheme
sourcepub fn apply_optional(&mut self, optional: &BodyThemeWith)
pub fn apply_optional(&mut self, optional: &BodyThemeWith)
Checks each field in optional and if it’s Some, it overwrites the corresponding self field.
Trait Implementations§
source§impl PartialEq<BodyTheme> for BodyTheme
impl PartialEq<BodyTheme> for BodyTheme
impl Eq for BodyTheme
impl StructuralEq for BodyTheme
impl StructuralPartialEq for BodyTheme
Auto Trait Implementations§
impl RefUnwindSafe for BodyTheme
impl Send for BodyTheme
impl Sync for BodyTheme
impl Unpin for BodyTheme
impl UnwindSafe for BodyTheme
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.