Function swipl::term::ser::to_term

source ·
pub fn to_term<'a, T, C: QueryableContextType>(
    context: &'a Context<'_, C>,
    term: &Term<'a>,
    obj: &T
) -> Result<(), Error>
where T: Serialize,
Expand description

Serialize a value into a prolog term using serde.

This uses the default serialization configuration, meaning:

  • prolog dictionary tags will remain variables.
  • struct type names are ignored and will not be set as the dictionary tag.