Expand description
libspecr is the standard library of specr lang.
Modules
- The items from this module are automatically imported.
Macros
- Wrapper around the
std::formatmacro returninglibspecr::Stringinstead ofstd::string::String. - Construct a
List.
Structs
- This type is basically a copy of the
Aligntype in the Rust compiler. See Align. - Garbage collected big integer that implements
Copyand supports construction inconstcontexts. - Uniformly samples a random non-negative
Int… - Garbage-collected
Vec-like datastructure implementingCopy. Note that functions which seem to mutate theList, actually clone the list and allocate a newGcCowunder the hood. - Garbage-collected hash map implementing
Copy. - Wrapper-type for names of any kind.
- Conceptually, this is a
Nondet<Result<T, E>>. - Non-determinism primitive. See Non-determinism.
- Garbage-collected hash set implementing
Copy. Sizerepresents a non-negative number of bytes or bits.- Garbage-collected wrapper around
std::string::StringimplementingCopy.
Traits
- A probability distribution over values of type
T. - Satisfied by types that can be constructed from some inner types.
- Conversion to
Int.
Functions
- The
pickfunction from the minirust spec. See Non-determinism. - The
predictfunction from the minirust spec. See Non-determinism. - Wraps a value
iasSome(i),Ok(i)or something similar of typeT.