pub struct ChangeId {
pub story: String,
pub wid: String,
}Expand description
One tracked change, addressed by story and the change’s w:id value.
The grammar of short and of the transitional colon long is safe
unquoted in bash, csh and zsh and never collides with another change when
its w:id is canonical.
Fields§
§story: StringThe owning story: body for body changes, otherwise the part’s file
stem (header1, footnotes, endnotes, …).
wid: StringThe change’s w:id, as the document spells it. A canonical
u32 (12) prints and parses back unchanged; values that do not fit
the short form (007, 4294967296, x9) travel as strings so the
short/long round-trip stays exact.
Implementations§
Source§impl ChangeId
impl ChangeId
Sourcepub fn new(story: impl Into<String>, wid: impl Into<String>) -> ChangeId
pub fn new(story: impl Into<String>, wid: impl Into<String>) -> ChangeId
Builds a ChangeId from its story and w:id. Both strings are
stored verbatim; no canonicalisation is performed here.
Sourcepub fn short(&self) -> String
pub fn short(&self) -> String
The id jubarte prints for the change, everywhere: r12 in the
body, header1.r1 elsewhere; the transitional colon id
{story}:rev:{wid} only when the story or the w:id has no short
spelling (ShortId decides: what is printed parses). The 17
October 2026 contract allocates a label instead (§4); that is staged,
not landed.
Trait Implementations§
impl Eq for ChangeId
impl StructuralPartialEq for ChangeId
Auto Trait Implementations§
impl Forget for ChangeId
impl Freeze for ChangeId
impl Move for ChangeId
impl RefUnwindSafe for ChangeId
impl Send for ChangeId
impl Sync for ChangeId
impl Unpin for ChangeId
impl UnsafeUnpin for ChangeId
impl UnwindSafe for ChangeId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.