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]

[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.

[src]

Return the segment local DocId

Trait Implementations

impl Debug for DocAddress
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for DocAddress
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for DocAddress
[src]

impl PartialEq for DocAddress
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for DocAddress
[src]

impl PartialOrd for DocAddress
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more