pub struct Bridge {
pub name: &'static str,
pub ticks: Ticks,
pub divisibility: u32,
pub epoch_label: &'static str,
}Expand description
A bridge constant: a profile constant whose sole purpose is conversion to a foreign unit system (Rule A.3).
Profile UC-1 declares exactly one. A bridge constant MUST be an exact
integer number of ticks, so conversion into absolute time is multiplication
and never requires rounding (Rule A.4).
Fields§
§name: &'static strThe foreign unit’s name, e.g. "second".
ticks: TicksIts exact length in ticks.
divisibility: u32The largest n such that 5^n divides ticks. This is what makes the
§2.4 alignment invariants hold and decimal subdivisions exact (D-3).
epoch_label: &'static strWhat the bridge’s zero point is, as a human label. This anchors the bridge, not the datum and not any calendar (§2.1).
Trait Implementations§
impl Eq for Bridge
impl StructuralPartialEq for Bridge
Auto Trait Implementations§
impl Freeze for Bridge
impl RefUnwindSafe for Bridge
impl Send for Bridge
impl Sync for Bridge
impl Unpin for Bridge
impl UnsafeUnpin for Bridge
impl UnwindSafe for Bridge
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