Struct tantivy::DocAddress[][src]

pub struct DocAddress(pub SegmentLocalId, pub DocId);

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

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

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

Methods

impl DocAddress
[src]

Return the segment ordinal. The segment ordinal is an id identifying the segment hosting the document. It is only meaningful, in the context of a searcher.

Return the segment local DocId

Trait Implementations

impl Debug for DocAddress
[src]

Formats the value using the given formatter. Read more

impl Clone for DocAddress
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for DocAddress
[src]

impl PartialEq for DocAddress
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for DocAddress
[src]

impl PartialOrd for DocAddress
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for DocAddress
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Auto Trait Implementations

impl Send for DocAddress

impl Sync for DocAddress