pub struct ItemSpan {
pub component: String,
pub occurrence: usize,
pub node_key: NodeKey,
pub identity: String,
pub value: ItemValue,
pub span: ByteSpan,
}Expand description
One projected item plus its full-document byte span. node_key / value
mirror ComponentOccurrence::items; span is the lossless source range of
value in the full document (so concatenating an occurrence’s spans in order
reproduces its body, and the spans tile the body with no gaps).
Fields§
§component: StringComponent name (queue, exchange, …).
occurrence: usize0-based occurrence index of that component name.
node_key: NodeKeyFull component:occurrence:item-id:index node key.
identity: StringReorder-stable identity (component:occurrence:item-id).
value: ItemValueThe item’s exact source text.
span: ByteSpanThe item’s byte span in the FULL document.
Trait Implementations§
impl Eq for ItemSpan
impl StructuralPartialEq for ItemSpan
Auto Trait Implementations§
impl Forget for ItemSpan
impl Freeze for ItemSpan
impl RefUnwindSafe for ItemSpan
impl Send for ItemSpan
impl Sync for ItemSpan
impl Unpin for ItemSpan
impl UnsafeUnpin for ItemSpan
impl UnwindSafe for ItemSpan
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
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§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.