pub struct FieldStyle {
pub frame: FrameStyle,
pub gap: f32,
pub group_gap: f32,
pub required_marker: &'static str,
}Expand description
The geometry a field group is drawn with.
Values again, for the reason FrameStyle is: every number here belongs to
makeover-geometry and arrives already resolved.
Fields§
§frame: FrameStyleThe well a text control sits in.
gap: f32Between a field’s own parts: its label, its control, its hint and its error.
group_gap: f32Between one field and the next.
required_marker: &'static strWhat marks a required field, appended to its label.
A knob rather than a constant, because it is the one piece of copy in
this crate and copy is not a renderer’s call. A webview does not need it
at all — it emits the required attribute and the browser answers — so
this renderer is the first place where a compulsory field either shows
that it is or silently does not.
Trait Implementations§
Source§impl Clone for FieldStyle
impl Clone for FieldStyle
Source§fn clone(&self) -> FieldStyle
fn clone(&self) -> FieldStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FieldStyle
Source§impl Debug for FieldStyle
impl Debug for FieldStyle
Source§impl Default for FieldStyle
impl Default for FieldStyle
Source§impl PartialEq for FieldStyle
impl PartialEq for FieldStyle
impl StructuralPartialEq for FieldStyle
Auto Trait Implementations§
impl Freeze for FieldStyle
impl RefUnwindSafe for FieldStyle
impl Send for FieldStyle
impl Sync for FieldStyle
impl Unpin for FieldStyle
impl UnsafeUnpin for FieldStyle
impl UnwindSafe for FieldStyle
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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