pub trait LineDirection {
// Required methods
fn points_downwards(&self, compat_mode: GradientCompatMode) -> bool;
fn to_css<W>(
&self,
dest: &mut CssWriter<'_, W>,
compat_mode: GradientCompatMode,
) -> Result
where W: Write;
}Expand description
The direction of a linear gradient.
Required Methods§
Sourcefn points_downwards(&self, compat_mode: GradientCompatMode) -> bool
fn points_downwards(&self, compat_mode: GradientCompatMode) -> bool
Whether this direction points towards, and thus can be omitted.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".