Enum swc_css_ast::Hue
source · Variants§
Implementations§
source§impl Hue
impl Hue
sourcepub fn as_number(&self) -> Option<&Number>
pub fn as_number(&self) -> Option<&Number>
Returns Some
if self
is a reference of variant Number
, and None
otherwise.
sourcepub fn as_mut_number(&mut self) -> Option<&mut Number>
pub fn as_mut_number(&mut self) -> Option<&mut Number>
Returns Some
if self
is a mutable reference of variant Number
, and None
otherwise.
sourcepub fn expect_number(self) -> Numberwhere
Self: Debug,
pub fn expect_number(self) -> Numberwhere
Self: Debug,
sourcepub fn number(self) -> Option<Number>
pub fn number(self) -> Option<Number>
Returns Some
if self
is of variant Number
, and None
otherwise.
sourcepub fn as_angle(&self) -> Option<&Angle>
pub fn as_angle(&self) -> Option<&Angle>
Returns Some
if self
is a reference of variant Angle
, and None
otherwise.
sourcepub fn as_mut_angle(&mut self) -> Option<&mut Angle>
pub fn as_mut_angle(&mut self) -> Option<&mut Angle>
Returns Some
if self
is a mutable reference of variant Angle
, and None
otherwise.
sourcepub fn expect_angle(self) -> Anglewhere
Self: Debug,
pub fn expect_angle(self) -> Anglewhere
Self: Debug,
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hue
impl<'de> Deserialize<'de> for Hue
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