Struct z3::ast::String[][src]

pub struct String<'ctx> { /* fields omitted */ }
Expand description

Ast node representing a string value.

Implementations

Creates a new constant using the built-in string sort

Creates a fresh constant using the built-in string sort

Creates a Z3 constant string from a &str

Retrieves the underlying std::string::String

If this is not a constant z3::ast::String, return None.

Note that to_string() provided by std::string::ToString (which uses std::fmt::Display) returns an escaped string. In contrast, z3::ast::String::from_str(&ctx, s).unwrap().as_string() returns a String equal to the original value.

Appends the argument strings to Self

Checks whether Self contains a substring

Checks whether Self is a prefix of the argument

Checks whether Self is a sufix of the argument

Trait Implementations

Compare this Ast with another Ast, and get a Bool representing the result. Read more

Compare this Ast with another Ast, and get a Result. Errors if the sort does not match for the two values. Read more

Compare this Ast with a list of other Asts, and get a Bool which is true only if all arguments (including Self) are pairwise distinct. Read more

Get the Sort of the Ast

Simplify the Ast. Returns a new Ast which is equivalent, but simplified using algebraic simplification rules, such as constant propagation. Read more

Performs substitution on the Ast. The slice substitutions contains a list of pairs with a “from” Ast that will be substituted by a “to” Ast. Read more

Return the number of children of this Ast. Read more

Return the nth child of this Ast. Read more

Return the children of this node as a Vec<Dynamic>.

Return the AstKind for this Ast.

Return true if this is a Z3 function application. Read more

Return true if this is a Z3 constant. Read more

Return the FuncDecl of the Ast. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.