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

Method name

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

Source from the content-addressed store, hash-verified

135
136impl<'a> MarginRule<'a> {
137 pub fn name(&self) -> &T![AtKeyword] {
138 match self {
139 Self::TopLeftCorner(a, _) => a,
140 Self::TopLeft(a, _) => a,
141 Self::TopCenter(a, _) => a,
142 Self::TopRight(a, _) => a,
143 Self::TopRightCorner(a, _) => a,
144 Self::RightTop(a, _) => a,
145 Self::RightMiddle(a, _) => a,
146 Self::RightBottom(a, _) => a,
147 Self::BottomRightCorner(a, _) => a,
148 Self::BottomRight(a, _) => a,
149 Self::BottomCenter(a, _) => a,
150 Self::BottomLeft(a, _) => a,
151 Self::BottomLeftCorner(a, _) => a,
152 Self::LeftBottom(a, _) => a,
153 Self::LeftMiddle(a, _) => a,
154 Self::LeftTop(a, _) => a,
155 }
156 }
157
158 pub fn block(&self) -> &MarginRuleBlock<'a> {
159 match self {

Callers 12

try_fromMethod · 0.45
newMethod · 0.45
newMethod · 0.45
listen_stdioMethod · 0.45
record_f64Method · 0.45
record_i64Method · 0.45
record_u64Method · 0.45
record_boolMethod · 0.45
record_strMethod · 0.45
record_errorMethod · 0.45
record_debugMethod · 0.45
on_eventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected