#[non_exhaustive]pub enum ColorInput<const DEFAULT_CURRENT_COLOR: bool = true> {
CurrentColor,
Value(Color),
}Expand description
Represents a color input value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl<const DEFAULT_CURRENT_COLOR: bool> Clone for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> Clone for ColorInput<DEFAULT_CURRENT_COLOR>
Source§fn clone(&self) -> ColorInput<DEFAULT_CURRENT_COLOR>
fn clone(&self) -> ColorInput<DEFAULT_CURRENT_COLOR>
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<const DEFAULT_CURRENT_COLOR: bool> Copy for ColorInput<DEFAULT_CURRENT_COLOR>
Source§impl<const DEFAULT_CURRENT_COLOR: bool> Debug for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> Debug for ColorInput<DEFAULT_CURRENT_COLOR>
Source§impl<const DEFAULT_CURRENT_COLOR: bool> Default for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> Default for ColorInput<DEFAULT_CURRENT_COLOR>
Source§impl<'i, const DEFAULT_CURRENT_COLOR: bool> FromCss<'i> for ColorInput<DEFAULT_CURRENT_COLOR>
impl<'i, const DEFAULT_CURRENT_COLOR: bool> FromCss<'i> for ColorInput<DEFAULT_CURRENT_COLOR>
Source§const VALID_TOKENS: &'static [CssToken]
const VALID_TOKENS: &'static [CssToken]
Returns the list of valid CSS tokens for this type.
Source§fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
Source§impl<const DEFAULT_CURRENT_COLOR: bool> PartialEq for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> PartialEq for ColorInput<DEFAULT_CURRENT_COLOR>
Source§fn eq(&self, other: &ColorInput<DEFAULT_CURRENT_COLOR>) -> bool
fn eq(&self, other: &ColorInput<DEFAULT_CURRENT_COLOR>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<const DEFAULT_CURRENT_COLOR: bool> StructuralPartialEq for ColorInput<DEFAULT_CURRENT_COLOR>
Source§impl<const DEFAULT_CURRENT_COLOR: bool> TailwindPropertyParser for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> TailwindPropertyParser for ColorInput<DEFAULT_CURRENT_COLOR>
Auto Trait Implementations§
impl<const DEFAULT_CURRENT_COLOR: bool> Freeze for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> RefUnwindSafe for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> Send for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> Sync for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> Unpin for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> UnsafeUnpin for ColorInput<DEFAULT_CURRENT_COLOR>
impl<const DEFAULT_CURRENT_COLOR: bool> UnwindSafe for ColorInput<DEFAULT_CURRENT_COLOR>
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