pub struct InputLayoutThemePartial {
pub corner_radius: Option<Preference<CornerRadius>>,
pub inner_margin: Option<Preference<Gaps>>,
}Expand description
You can use this to change a theme for only one component, with the theme property.
Fields§
§corner_radius: Option<Preference<CornerRadius>>§inner_margin: Option<Preference<Gaps>>Implementations§
Source§impl InputLayoutThemePartial
impl InputLayoutThemePartial
pub fn new() -> Self
pub fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self
pub fn inner_margin(self, inner_margin: impl Into<Gaps>) -> Self
Trait Implementations§
Source§impl Clone for InputLayoutThemePartial
impl Clone for InputLayoutThemePartial
Source§fn clone(&self) -> InputLayoutThemePartial
fn clone(&self) -> InputLayoutThemePartial
Returns a duplicate 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 InputLayoutThemePartial
impl Debug for InputLayoutThemePartial
Source§impl Default for InputLayoutThemePartial
impl Default for InputLayoutThemePartial
Source§fn default() -> InputLayoutThemePartial
fn default() -> InputLayoutThemePartial
Returns the “default value” for a type. Read more
Source§impl PartialEq for InputLayoutThemePartial
impl PartialEq for InputLayoutThemePartial
impl StructuralPartialEq for InputLayoutThemePartial
Auto Trait Implementations§
impl Freeze for InputLayoutThemePartial
impl RefUnwindSafe for InputLayoutThemePartial
impl Send for InputLayoutThemePartial
impl Sync for InputLayoutThemePartial
impl Unpin for InputLayoutThemePartial
impl UnwindSafe for InputLayoutThemePartial
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,
§impl<T> ComponentProps for T
impl<T> ComponentProps for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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