//! Style types for float layout /// Floats a box to the left or right. /// This property only applies to children of a block layout /// /// See #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] pub enum Float { /// The box is floated to the left Left, /// The box is floated to the right Right, /// The box is not floated #[default] None, } /// Gives a box "clearance", which moves it below floated boxes which precede /// it in the tree. /// /// See #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] pub enum Clear { /// The box clears left-floated boxes Left, /// The box clears right-floated boxes Right, /// The box clears boxes floated in either direction Both, /// The box does not clear floated boxes #[default] None, }