pub struct FieldAnalyzerBinding {
pub index: BoundAnalyzerRevision,
pub search: BoundAnalyzerRevision,
pub owner: AnalyzerBindingOwner,
pub last_phase: AnalyzerPhase,
}Fields§
§index: BoundAnalyzerRevision§search: BoundAnalyzerRevision§owner: AnalyzerBindingOwner§last_phase: AnalyzerPhaseImplementations§
Source§impl FieldAnalyzerBinding
impl FieldAnalyzerBinding
pub fn unassigned( index: Arc<CompiledAnalyzer>, search: Arc<CompiledAnalyzer>, ) -> Self
pub fn assigned( &self, name: &str, compiled: Arc<CompiledAnalyzer>, phase: AnalyzerPhase, owner: AnalyzerBindingOwner, ) -> Self
pub fn uses_name(&self, name: &str) -> bool
Sourcepub fn last_assignment(&self) -> Option<(String, String)>
pub fn last_assignment(&self) -> Option<(String, String)>
Compatibility label for the most recent explicit assignment. Exact execution always uses both retained revisions.
pub fn phase_name(&self) -> &'static str
Sourcepub fn install(
&self,
field: &str,
index: &mut dyn InvertedIndex,
) -> StorageBackendResult<()>
pub fn install( &self, field: &str, index: &mut dyn InvertedIndex, ) -> StorageBackendResult<()>
Install both immutable sides without name or file resolution. Callers provide an empty/restoring provider, or the exact index revision already associated with its postings.
pub fn to_json(&self) -> StorageBackendResult<String>
pub fn from_json( json: &str, resources: &AnalyzerResources, ) -> StorageBackendResult<Self>
Trait Implementations§
Source§impl Clone for FieldAnalyzerBinding
impl Clone for FieldAnalyzerBinding
Source§fn clone(&self) -> FieldAnalyzerBinding
fn clone(&self) -> FieldAnalyzerBinding
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 moreAuto Trait Implementations§
impl Freeze for FieldAnalyzerBinding
impl RefUnwindSafe for FieldAnalyzerBinding
impl Send for FieldAnalyzerBinding
impl Sync for FieldAnalyzerBinding
impl Unpin for FieldAnalyzerBinding
impl UnsafeUnpin for FieldAnalyzerBinding
impl UnwindSafe for FieldAnalyzerBinding
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