flextablev0.1.0

API Reference

API Reference

Every public item in the crate, grouped by type.

Everything below is re-exported from the crate root, so use flextable::{Table, Value}; is all most code needs.

Types#

ItemKindDescription
TablestructThe table: a shared handle to an array part and a hash part.
TableRefstructA read-only borrowed view of a table, from Table::borrow.
ValueenumA dynamic value: nil, boolean, integer, float, string or table.
KeyenumAn owned, always-valid key.
KeyRefenumA borrowed key used for lookups.
ErrorenumWhy a table operation failed.
Resulttype aliasstd::result::Result<T, Error>.

Traits#

ItemDescription
AsKeyAnything usable as a key: integers, floats, booleans, strings, tables, Value, Key.

Iterators#

ItemReturned byYields
PairsTable::pairs(Key, Value)
IPairsTable::ipairs(i64, Value)
IterTableRef::iter(KeyRef<'a>, &'a Value)

Macros#

ItemDescription
table!Build a table from a list of values or key => value pairs.

Modules#

The items are also reachable through their modules: flextable::table, flextable::value, flextable::key, flextable::iter and flextable::error. The crate root is the recommended path.

Conventions on these pages#

  • Signatures are shown as declared. K: AsKey means any key type; V: Into<Value> (or impl Into<Value>) means any value type.
  • Complexity badges give the cost in terms of n, the number of elements involved.
  • Methods that take &self and change the table do so through interior mutability; see Core Concepts.