<preclass='rust fn'>pub fn tables_last<'a, I, K, V, S>(<br> data: &'a I, <br> serializer: S<br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><S::<aclass="type"href="../../serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, S::<aclass="type"href="../../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>><spanclass="where fmt-newline">where<br> &'a I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html"title="trait core::iter::traits::IntoIterator">IntoIterator</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>,<br> K: <aclass="trait"href="../../serde/ser/trait.Serialize.html"title="trait serde::ser::Serialize">Serialize</a>,<br> V: <aclass="trait"href="../../serde/ser/trait.Serialize.html"title="trait serde::ser::Serialize">Serialize</a>,<br> S: <aclass="trait"href="../../serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>, </span></pre><divclass='docblock'><p>Convenience function to serialize items in a map in an order valid with
TOML.</p>
<p>TOML carries the restriction that keys in a table must be serialized last if
their value is a table itself. This isn't always easy to guarantee, so this