Struct clingo::Configuration [] [src]

pub struct Configuration(_);

Handle for to the solver configuration.

Methods

impl Configuration
[src]

[src]

Get the root key of the configuration.

[src]

Get the type of a key. The type is a bitset, an entry can have multiple (but at least one) type.

[src]

Get the description of an entry.

[src]

Get the size of an array entry.

Pre-condition

The type of the entry must be ConfigurationType::ARRAY.

[src]

Get the subkey at the given offset of an array entry.

Note: Some array entries, like fore example the solver configuration, can be accessed past there actual size to add subentries.

Pre-condition

The type of the entry must be ConfigurationType::ARRAY.

Arguments

  • key - the key
  • offset - the offset in the array

[src]

Get the number of subkeys of a map entry.

Pre-condition

The type of the entry must be ConfigurationType::MAP.

[src]

Query whether the map has a key.

Pre-condition

The type of the entry must be ConfigurationType::Map.

Note: Multiple levels can be looked up by concatenating keys with a period.

Arguments

  • key - the key
  • name - the name to lookup the subkey

Returns whether the key is in the map

[src]

Get the name associated with the offset-th subkey.

Pre-condition

The type of the entry must be ConfigurationType::MAP.

Arguments

  • key - the key
  • offset - the offset of the name

[src]

Lookup a subkey under the given name.

Pre-condition

The type of the entry must be ConfigurationType::MAP.

Note: Multiple levels can be looked up by concatenating keys with a period.

[src]

Check whether a entry has a value.

Pre-condition

The type of the entry must be ConfigurationType::VALUE.

Arguments

  • key - the key

[src]

Get the string value of the given entry.

Pre-condition

The type of the entry must be ConfigurationType::VALUE.

Arguments

  • key - the key

Errors

[src]

Set the value of an entry.

Pre-condition

The type of the entry must be ConfigurationType::VALUE.

Arguments

  • key - the key
  • value - the value to set

Errors

Trait Implementations

impl Debug for Configuration
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Configuration
[src]

impl Clone for Configuration
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Configuration

impl Sync for Configuration