pub struct LabelEntry {
pub label: String,
pub subject: u32,
}Expand description
One entry of the label index: the display label of a subject (its
rdfs:label / skos:prefLabel / … literal) paired with that subject’s id.
Computed at build (the most-connected labeled subjects, bounded), the table
is sorted by the label’s lowercased form so a prefix query is a binary search
— autocomplete and CONTAINS/prefix lookup without scanning the literals.
Range-fetched with the pyramid; the label string is stored inline so the
search is self-contained on the remote-lazy path (no dictionary fault).
Fields§
§label: StringThe label literal’s lexical value, original case (sorted case-insensitively).
subject: u32The subject id (subject id space) this label belongs to.
Trait Implementations§
Source§impl Clone for LabelEntry
impl Clone for LabelEntry
Source§fn clone(&self) -> LabelEntry
fn clone(&self) -> LabelEntry
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 moreSource§impl Debug for LabelEntry
impl Debug for LabelEntry
impl Eq for LabelEntry
Source§impl PartialEq for LabelEntry
impl PartialEq for LabelEntry
impl StructuralPartialEq for LabelEntry
Auto Trait Implementations§
impl Freeze for LabelEntry
impl RefUnwindSafe for LabelEntry
impl Send for LabelEntry
impl Sync for LabelEntry
impl Unpin for LabelEntry
impl UnsafeUnpin for LabelEntry
impl UnwindSafe for LabelEntry
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