pub enum AlsoOn {
Method(&'static str, &'static [&'static str]),
Leaf(&'static [&'static str]),
Exact(&'static [&'static str]),
FreeFn,
}Expand description
How an AlsoEffect row names its paths — the two shapes the rule tables already use.
Variants§
Method(&'static str, &'static [&'static str])
(type, methods): the path’s second-to-last segment is type and its last is one of methods — the key
b11_r1528 matches on, so a row here names exactly the spellings the primary rule beside it names.
Leaf(&'static [&'static str])
A free function: the path ends in ::<leaf> for one of these leaves.
Exact(&'static [&'static str])
These exact paths and no others — for a free function whose name a method of the same crate also ends in
(tokio_postgres::connect against TlsConnect::connect), where a AlsoOn::Leaf tail would charge both.
FreeFn
A free function: every path segment after the crate name starts with a lower-case letter (fastrand::u32,
fastrand::global_rng::u32), so no type’s method of the same name (fastrand::Rng::u32) matches, and neither does a
trait-impl spelling such as fastrand::&Rng::eq (a segment that is not an identifier).