MCPcopy Create free account
hub / github.com/csskit/csskit / block

Method block

crates/css_ast/src/rules/page.rs:158–177  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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
180impl<'a> RuleVariants<'a> for MarginRule<'a> {

Callers 1

metadataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected