pub struct Entry {
pub offset: u32,
pub confidence: u8,
pub source_flags: u8,
}Expand description
5-byte entry in SemanticPool
Fields§
§offset: u32Offset into string pool (24-bit)
confidence: u8Confidence (0-255 → 0.0-1.0)
source_flags: u8Source (lower 4 bits) + flags (upper 4 bits)
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn new(offset: u32, confidence: f32, source: OntologySource) -> Self
pub fn new(offset: u32, confidence: f32, source: OntologySource) -> Self
Create a new entry with the given offset, confidence, and source
Sourcepub fn source(&self) -> OntologySource
pub fn source(&self) -> OntologySource
Get the ontology source for this entry
Sourcepub fn confidence_f32(&self) -> f32
pub fn confidence_f32(&self) -> f32
Get the confidence as a float (0.0-1.0)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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