Skip to main content

covers

Function covers 

Source
pub fn covers(grantor: &Expr, new: &Expr) -> bool
Expand description

Does everything new grants also fall inside what grantor grants?

Used to stop a delegate conferring more than they hold. Sound, not complete: it answers true only when containment follows from the shape of the two expressions (equal, a narrowing AND, every branch of an OR, a wildcard or matching glob on the same field), and false when unsure, so a legitimate grant it cannot prove is refused and the owner makes it instead. It never answers true wrongly.