Enum tailwind_parse::SubjectValue
source · Variants§
Implementations§
source§impl<'a> SubjectValue<'a>
impl<'a> SubjectValue<'a>
pub fn as_str(&self) -> &str
pub fn value(&self) -> Option<&Value<'_>>
pub fn css(&self) -> Option<&Css<'_>>
pub fn parse(s: NomSpan<'a>) -> IResult<NomSpan<'a>, Self, Error<NomSpan<'a>>>
pub fn parse_with_span(
s: NomSpan<'a>
) -> IResult<NomSpan<'a>, (NomSpan<'a>, Self), Error<NomSpan<'a>>>
Trait Implementations§
source§impl<'a> Debug for SubjectValue<'a>
impl<'a> Debug for SubjectValue<'a>
source§impl Display for SubjectValue<'_>
impl Display for SubjectValue<'_>
source§impl<'a> PartialEq<SubjectValue<'a>> for SubjectValue<'a>
impl<'a> PartialEq<SubjectValue<'a>> for SubjectValue<'a>
source§fn eq(&self, other: &SubjectValue<'a>) -> bool
fn eq(&self, other: &SubjectValue<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.