pub enum ComposeStyle {
Stacked,
InlineIcon,
BadgeInline,
}Expand description
How several fields are visually merged into a single cell.
Variants§
Stacked
Fields stacked vertically, primary on top.
InlineIcon
Leading icon followed by inline text.
BadgeInline
Primary text with a trailing badge.
Implementations§
Source§impl ComposeStyle
impl ComposeStyle
Sourcepub fn slug(self) -> &'static str
pub fn slug(self) -> &'static str
The stable slug used in forms and serde (matches the snake_case
representation), e.g. badge_inline.
Sourcepub fn from_slug(slug: &str) -> Option<Self>
pub fn from_slug(slug: &str) -> Option<Self>
Parse a style slug from the designer form. Unknown values return None.
Sourcepub fn all() -> &'static [ComposeStyle]
pub fn all() -> &'static [ComposeStyle]
Every style, in display order — for building the style <select>.
Trait Implementations§
Source§impl Clone for ComposeStyle
impl Clone for ComposeStyle
Source§fn clone(&self) -> ComposeStyle
fn clone(&self) -> ComposeStyle
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 ComposeStyle
Source§impl Debug for ComposeStyle
impl Debug for ComposeStyle
Source§impl<'de> Deserialize<'de> for ComposeStyle
impl<'de> Deserialize<'de> for ComposeStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ComposeStyle
Source§impl PartialEq for ComposeStyle
impl PartialEq for ComposeStyle
Source§fn eq(&self, other: &ComposeStyle) -> bool
fn eq(&self, other: &ComposeStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComposeStyle
impl Serialize for ComposeStyle
impl StructuralPartialEq for ComposeStyle
Auto Trait Implementations§
impl Freeze for ComposeStyle
impl RefUnwindSafe for ComposeStyle
impl Send for ComposeStyle
impl Sync for ComposeStyle
impl Unpin for ComposeStyle
impl UnsafeUnpin for ComposeStyle
impl UnwindSafe for ComposeStyle
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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