Struct clingo::Statistics [] [src]

pub struct Statistics(_);

Handle for to the solver statistics.

Methods

impl Statistics
[src]

[src]

Get the root key of the statistics.

[src]

Get the type of a key.

[src]

Get the size of an array entry.

Pre-condition

The statistics type of the entry must be StatisticsType::Array.

[src]

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

Pre-condition

The statistics type of the entry must be StatisticsType::Array.

Arguments

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

[src]

Get the number of subkeys of a map entry.

Pre-condition

The statistics type of the entry must be StatisticsType::Map.

[src]

Get the name associated with the offset-th subkey.

Pre-condition

The statistics type of the entry must be StatisticsType::Map.

Arguments

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

[src]

Lookup a subkey under the given name.

Pre-condition

The statistics type of the entry must be StatisticsType::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

[src]

Get the value of the given entry.

Pre-condition

The statistics type of the entry must be StatisticsType::Value.

Trait Implementations

impl Debug for Statistics
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Statistics
[src]

impl Clone for Statistics
[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 Statistics

impl Sync for Statistics