| 156 | } |
| 157 | |
| 158 | pub fn block(&self) -> &MarginRuleBlock<'a> { |
| 159 | match self { |
| 160 | Self::TopLeftCorner(_, b) => b, |
| 161 | Self::TopLeft(_, b) => b, |
| 162 | Self::TopCenter(_, b) => b, |
| 163 | Self::TopRight(_, b) => b, |
| 164 | Self::TopRightCorner(_, b) => b, |
| 165 | Self::RightTop(_, b) => b, |
| 166 | Self::RightMiddle(_, b) => b, |
| 167 | Self::RightBottom(_, b) => b, |
| 168 | Self::BottomRightCorner(_, b) => b, |
| 169 | Self::BottomRight(_, b) => b, |
| 170 | Self::BottomCenter(_, b) => b, |
| 171 | Self::BottomLeft(_, b) => b, |
| 172 | Self::BottomLeftCorner(_, b) => b, |
| 173 | Self::LeftBottom(_, b) => b, |
| 174 | Self::LeftMiddle(_, b) => b, |
| 175 | Self::LeftTop(_, b) => b, |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | impl<'a> RuleVariants<'a> for MarginRule<'a> { |