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 Forget for LabelEntry
impl Freeze for LabelEntry
impl Move 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
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.