[][src]Struct tantivy::DocAddress

pub struct DocAddress(pub SegmentLocalId, pub DocId);

DocAddress contains all the necessary information to identify a document given a Searcher object.

It consists of an id identifying its segment, and a segment-local DocId.

The id used for the segment is actually an ordinal in the list of Segments held by a Searcher.

Methods

impl DocAddress[src]

pub fn segment_ord(self) -> SegmentLocalId[src]

Return the segment ordinal id that identifies the segment hosting the document in the Searcher it is called from.

pub fn doc(self) -> DocId[src]

Return the segment-local DocId

Trait Implementations

impl Clone for DocAddress[src]

impl Copy for DocAddress[src]

impl Debug for DocAddress[src]

impl Eq for DocAddress[src]

impl Ord for DocAddress[src]

impl PartialEq<DocAddress> for DocAddress[src]

impl PartialOrd<DocAddress> for DocAddress[src]

impl StructuralEq for DocAddress[src]

impl StructuralPartialEq for DocAddress[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,