pub enum ShortId {
Block {
story: Story,
path: Vec<Step>,
},
Range {
first: Box<ShortId>,
last: usize,
},
Change {
story: Story,
wids: Vec<u32>,
},
Comment(u32),
CommentText(u32),
Section(usize),
Toc(usize),
}Expand description
A short id (see the module doc).
Variants§
Block
A story (an empty path names the part itself), or a block in it.
Fields
Range
The blocks from first to its sibling number last, both included:
p3-p7, footnotes.p2-p3, t0.row1.cell2.p1-p3 (the view’s
spelling: the second side is the last step of the first, renumbered).
Fields
§
first: Box<ShortId>The first block: a ShortId::Block with a path.
Change
Tracked changes by w:id: one (r12) or a pair shown as one
(r1+2), in a story (header1.r1).
Fields
Comment(u32)
A comment, by w:id (c5).
CommentText(u32)
The text a comment covers (c5.text).
Section(usize)
A section, in body order (s0).
Toc(usize)
A table of contents (toc0).
Implementations§
Trait Implementations§
impl Eq for ShortId
impl StructuralPartialEq for ShortId
Auto Trait Implementations§
impl Forget for ShortId
impl Freeze for ShortId
impl Move for ShortId
impl RefUnwindSafe for ShortId
impl Send for ShortId
impl Sync for ShortId
impl Unpin for ShortId
impl UnsafeUnpin for ShortId
impl UnwindSafe for ShortId
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
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
Compare self to
key and return true if they are equal.