pub struct RuleRecord {
pub name: String,
pub from: i32,
pub to: YearBound,
pub in_month: u8,
pub on: OnDay,
pub at: TimeOfDay,
pub save: Save,
pub letter: String,
pub origin: Origin,
}Expand description
A Rule line. Stored verbatim-ish in T1 (only validated, not yet expanded); the
transition compiler in T2 consumes the typed fields.
Fields§
§name: String§from: i32FROM year.
to: YearBoundTO year (after resolving only/maximum).
in_month: u8§on: OnDay§at: TimeOfDay§save: Save§letter: StringLETTER/S — the variable part of the abbreviation (- becomes empty).
origin: OriginTrait Implementations§
Source§impl Clone for RuleRecord
impl Clone for RuleRecord
Source§fn clone(&self) -> RuleRecord
fn clone(&self) -> RuleRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuleRecord
impl RefUnwindSafe for RuleRecord
impl Send for RuleRecord
impl Sync for RuleRecord
impl Unpin for RuleRecord
impl UnsafeUnpin for RuleRecord
impl UnwindSafe for RuleRecord
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