Struct hpack_codec::table::Index [] [src]

pub struct Index(_);

Entry Index.

Methods

impl Index
[src]

[src]

Makes a new Index instance.

The value of index must be greater than zero.

Examples

use hpack_codec::table::Index;

assert!(Index::new(1).is_ok());
assert!(Index::new(0).is_err());

[src]

Returns the Index instance which has the starting index of the dynamic table.

See: 2.3.3. Index Address Space

Examples

use hpack_codec::table::Index;

assert_eq!(Index::dynamic_table_offset().as_u16(), 62);
assert_eq!(Index::dynamic_table_offset() + 8, Index::new(70).unwrap());

[src]

Returns the value of this index.

Trait Implementations

impl Debug for Index
[src]

[src]

Formats the value using the given formatter.

impl Clone for Index
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Index
[src]

impl Hash for Index
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Index
[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 Index
[src]

impl PartialOrd for Index
[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 Index
[src]

[src]

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

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl Add<u16> for Index
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl AddAssign<u16> for Index
[src]

[src]

Performs the += operation.

impl From<StaticEntry> for Index
[src]

[src]

Performs the conversion.