#[non_exhaustive]pub enum CssExpectedMessage {
ValueOrNone,
OneValue,
OneOrTwoValues,
OneToFourValues,
BorderRadius,
}Expand description
Defines reusable message templates for CSS parse errors.
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.
ValueOrNone
Expects a value or the none keyword.
OneValue
Expects exactly one value.
OneOrTwoValues
Expects one or two values.
OneToFourValues
Expects one to four values.
BorderRadius
Expects the border-radius shorthand grammar.
Implementations§
Source§impl CssExpectedMessage
impl CssExpectedMessage
pub fn build_message(&self, token: &str, valid_tokens: String) -> String
Auto Trait Implementations§
impl Freeze for CssExpectedMessage
impl RefUnwindSafe for CssExpectedMessage
impl Send for CssExpectedMessage
impl Sync for CssExpectedMessage
impl Unpin for CssExpectedMessage
impl UnsafeUnpin for CssExpectedMessage
impl UnwindSafe for CssExpectedMessage
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