pub struct DocumentCapacities {
pub tokens: usize,
pub sentences: usize,
pub hits: usize,
pub norms: usize,
pub plans: usize,
}Expand description
Slot counts a caller must supply for analyze_document_into on source.
This runs the year-one pipeline once. Prefer calling it, allocating those
lengths, then analyze_document_into — or use analyze_document, which
sizes from one pipeline run. Overflow is a typed error; buffers are not
written when any channel is short. After OutputBufferFull, caller slices
retain their prior contents.
Fields§
§tokens: usize§sentences: usize§hits: usize§norms: usize§plans: usizeTrait Implementations§
Source§impl Clone for DocumentCapacities
impl Clone for DocumentCapacities
impl Copy for DocumentCapacities
Source§impl Debug for DocumentCapacities
impl Debug for DocumentCapacities
impl Eq for DocumentCapacities
Source§impl PartialEq for DocumentCapacities
impl PartialEq for DocumentCapacities
impl StructuralPartialEq for DocumentCapacities
Auto Trait Implementations§
impl Freeze for DocumentCapacities
impl RefUnwindSafe for DocumentCapacities
impl Send for DocumentCapacities
impl Sync for DocumentCapacities
impl Unpin for DocumentCapacities
impl UnsafeUnpin for DocumentCapacities
impl UnwindSafe for DocumentCapacities
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more