/// Write an encoded TOML key /// /// To customize the encoding, see [`TomlStringBuilder`][crate::TomlStringBuilder]. fn key(&mutself, value: implcrate::WriteTomlKey) -> core::fmt::Result {
value.write_toml_key(self)
}
/// Write an encoded TOML scalar value /// /// To customize the encoding, see /// - [`TomlStringBuilder`][crate::TomlStringBuilder] /// - [`TomlIntegerFormat`][crate::TomlIntegerFormat] /// /// <div class="warning"> /// /// For floats, this preserves the sign bit for [`f32::NAN`] / [`f64::NAN`] for the sake of /// format-preserving editing. /// However, in most cases the sign bit is indeterminate and outputting signed NANs can be a /// cause of non-repeatable behavior. /// /// For general serialization, you should discard the sign bit. For example: /// ``` /// # let mut v = f64::NAN; /// if v.is_nan() { /// v = v.copysign(1.0); /// } /// ``` /// /// </div> fn value(&mutself, value: implcrate::WriteTomlValue) -> core::fmt::Result {
value.write_toml_value(self)
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.