pub fn into_list_gradient(self) -> Result<ListGradient> {
        match self {
            Value::Color(v) => Ok(ListGradient::Same(Gradient::Plain(v))),
            Value::Gradient(v) => Ok(ListGradient::Same(v)),
            Value::ListGradient(v) => Ok(v),
            _ => Err(Error::WrongType),
        }
    }
/// Tries to convert the value into a list gradient.
Tries to convert the value into a list gradient.
Tries to convert the value into a list gradient .
pub fn into_list_gradient(self) -> Result<ListGradient> {
        match self {
            Value::Color(v) => Ok(ListGradient::Same(Gradient::Plain(v))),
            Value::Gradient(v) => Ok(ListGradient::Same(v)),
            Value::ListGradient(v) => Ok(v),
            _ => Err(Error::WrongType),
        }
    }
pub fn into_list_gradient ( self ) -> Result < ListGradient > { match self { Value :: Color ( v ) => Ok ( ListGradient :: Same ( Gradient :: Plain ( v ) ) ) , Value :: Gradient ( v ) => Ok ( ListGradient :: Same ( v ) ) , Value :: ListGradient ( v ) => Ok ( v ) , _ => Err ( Error :: WrongType ) , } }
Tries to convert the value into a list gradient.
Tries to convert the value into a list gradient .
self
self