pub struct Only(pub BTreeMap<String, Vec<String>>);Expand description
Lifecycle dimension to admitted states (grammar only).
Tuple Fields§
§0: BTreeMap<String, Vec<String>>Implementations§
Source§impl Only
impl Only
Sourcepub fn admits(&self, states: &States) -> bool
pub fn admits(&self, states: &States) -> bool
Whether the rule applies to a document in states: for every
dimension named, the document’s states intersect the admitted ones.
Trait Implementations§
impl Eq for Only
impl StructuralPartialEq for Only
Auto Trait Implementations§
impl Freeze for Only
impl RefUnwindSafe for Only
impl Send for Only
impl Sync for Only
impl Unpin for Only
impl UnsafeUnpin for Only
impl UnwindSafe for Only
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more