Skip to main content

depth_declarations

Function depth_declarations 

Source
pub fn depth_declarations(depth: Depth) -> String
Expand description

The fill and edge declarations for a depth, as a rule body.

Empty for Depth::Flat, which has neither and inherits what it sits on. Callers lean on the emptiness to skip the rule rather than emit a class that sets nothing: a class that sets no properties is a class that means “I thought about this”, which is what comments are for.