Expand description

Various HashMap and BTreeMap extensions

Traits

  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U) — by utilizing a trick where you essentially have Borrow<(& T, & U)> for (T, U) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.
  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U, W) — by utilizing a trick where you essentially have Borrow<(& T, & U, & W)> for (T, U, W) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.
  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U, W, X) — by utilizing a trick where you essentially have Borrow<(& T, & U, & W, & X)> for (T, U, W, X) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.
  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U, W, X, Y) — by utilizing a trick where you essentially have Borrow<(& T, & U, & W, & X, & Y)> for (T, U, W, X, Y) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.
  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U, W, X, Y, Z) — by utilizing a trick where you essentially have Borrow<(& T, & U, & W, & X, & Y, & Z)> for (T, U, W, X, Y, Z) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.
  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U, W, X, Y, Z, A) — by utilizing a trick where you essentially have Borrow<(& T, & U, & W, & X, & Y, & Z, & A)> for (T, U, W, X, Y, Z, A) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.
  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U, W, X, Y, Z, A, B) — by utilizing a trick where you essentially have Borrow<(& T, & U, & W, & X, & Y, & Z, & A, & B)> for (T, U, W, X, Y, Z, A, B) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.
  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U, W, X, Y, Z, A, B, C) — by utilizing a trick where you essentially have Borrow<(& T, & U, & W, & X, & Y, & Z, & A, & B, & C)> for (T, U, W, X, Y, Z, A, B, C) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.
  • The method provided by this extension trait allows you to look up values in a map with a tuple key — i.e. (T, U, W, X, Y, Z, A, B, C, D) — by utilizing a trick where you essentially have Borrow<(& T, & U, & W, & X, & Y, & Z, & A, & B, & C, & D)> for (T, U, W, X, Y, Z, A, B, C, D) letting us look up a tuple key with owned values using a tuple of the same types with borrowed values.