pub struct Rule {
pub b: u8,
pub id: RuleId,
pub area: Area,
pub title: &'static str,
pub status: Option<Status>,
pub examples: &'static [&'static str],
}Expand description
One rule of the specification.
Fields§
§b: u8Its number in docs/spec/rules.md, 1 to 45.
id: RuleIdIts bookspec identifier.
area: AreaIts area.
title: &'static strIts normative title, as docs/spec/rules.md states it.
status: Option<Status>What its statement rests on; None for a rule allocated but not
yet stated (B-39, B-40 and B-43, plan/served.md 8.0.3).
examples: &'static [&'static str]The example ids that demonstrate it, by Example::id.
Implementations§
Trait Implementations§
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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