pub struct AnalysisToken { /* private fields */ }Implementations§
Source§impl AnalysisToken
impl AnalysisToken
Sourcepub fn clone_budgeted(
&self,
budget: &MemoryBudget,
poll: impl FnMut() -> AnalysisResult<()>,
) -> AnalysisResult<Budgeted<Self>>
pub fn clone_budgeted( &self, budget: &MemoryBudget, poll: impl FnMut() -> AnalysisResult<()>, ) -> AnalysisResult<Budgeted<Self>>
Copy the term and morphology into independent reservations, retaining all position and source attributes.
Source§impl AnalysisToken
impl AnalysisToken
pub fn term(&self) -> &TokenTerm
pub fn offsets(&self) -> Option<&SourceOffsets>
pub fn position_increment(&self) -> u32
pub fn position_length(&self) -> u32
pub fn is_keyword(&self) -> bool
Sourcepub fn filtered_utf16(&self) -> Option<&Range<usize>>
pub fn filtered_utf16(&self) -> Option<&Range<usize>>
Exact tokenizer coordinates before character-filter source correction, when supplied.
Trait Implementations§
Source§impl Clone for AnalysisToken
impl Clone for AnalysisToken
Source§fn clone(&self) -> AnalysisToken
fn clone(&self) -> AnalysisToken
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 AnalysisToken
impl Debug for AnalysisToken
impl Eq for AnalysisToken
Source§impl PartialEq for AnalysisToken
impl PartialEq for AnalysisToken
Source§impl Serialize for AnalysisToken
impl Serialize for AnalysisToken
impl StructuralPartialEq for AnalysisToken
Auto Trait Implementations§
impl Freeze for AnalysisToken
impl RefUnwindSafe for AnalysisToken
impl Send for AnalysisToken
impl Sync for AnalysisToken
impl Unpin for AnalysisToken
impl UnsafeUnpin for AnalysisToken
impl UnwindSafe for AnalysisToken
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