pub struct StringMatchResult {
pub tenant: TenantId,
pub matched_char_count: usize,
pub input_char_count: usize,
}Expand description
Result of a prefix match operation, including char counts to avoid recomputation.
Fields§
§tenant: TenantIdThe tenant that owns the matched prefix (zero-copy)
matched_char_count: usizeNumber of characters matched
input_char_count: usizeTotal number of characters in the input text
Trait Implementations§
Source§impl Clone for PrefixMatchResult
impl Clone for PrefixMatchResult
Source§fn clone(&self) -> PrefixMatchResult
fn clone(&self) -> PrefixMatchResult
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 PrefixMatchResult
impl Debug for PrefixMatchResult
Source§impl MatchResult for PrefixMatchResult
impl MatchResult for PrefixMatchResult
Source§fn matched_count(&self) -> usize
fn matched_count(&self) -> usize
Get the number of units (chars or tokens) that matched.
Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Get the total number of units in the input.
Auto Trait Implementations§
impl Freeze for PrefixMatchResult
impl RefUnwindSafe for PrefixMatchResult
impl Send for PrefixMatchResult
impl Sync for PrefixMatchResult
impl Unpin for PrefixMatchResult
impl UnsafeUnpin for PrefixMatchResult
impl UnwindSafe for PrefixMatchResult
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