pub enum CharacterInclusionDomain {
    Top,
    Value((CharacterSet, CharacterSet)),
}
Expand description

The CharacterInclusionDomain is a abstract domain describing the characters a string certainly has and the characters a string may have.

The value comprises of a set of certainly contained characters and a set of possibly contained characters while the Top value does not get any data. However, the Top value stands for an empty set of certainly contained characters and the whole alphabet of allowed characters for the possibly contained characters.

Variants§

§

Top

The Top value stands for an empty set of certainly contained characters and the whole alphabet of allowed characters for the possibly contained characters.

§

Value((CharacterSet, CharacterSet))

The set of certainly contained characters and a set of possibly contained characters

Implementations§

source§

impl CharacterInclusionDomain

source

pub fn unwrap_value(&self) -> (CharacterSet, CharacterSet)

Unwraps the values from the Character Inclusion Domain

Trait Implementations§

source§

impl AbstractDomain for CharacterInclusionDomain

source§

fn merge(&self, other: &Self) -> Self

Merge two values; Takes the intersection of the certainly contained characters and the union of the possibly contained characters. Returns Top if either Domain represents it.

source§

fn is_top(&self) -> bool

Check if the value is Top.

source§

fn merge_with(&mut self, other: &Self) -> &mut Self

Returns an upper bound (with respect to the partial order on the domain) for the two inputs self and other. Read more
source§

impl Clone for CharacterInclusionDomain

source§

fn clone(&self) -> CharacterInclusionDomain

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CharacterInclusionDomain

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for CharacterInclusionDomain

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for CharacterInclusionDomain

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DomainInsertion for CharacterInclusionDomain

source§

fn append_string_domain(&self, string_domain: &Self) -> CharacterInclusionDomain

Append string domain as part of a concatenation. (different to merge)

source§

fn create_float_value_domain() -> Self

Create a string domain that approximates float values.

source§

fn create_char_domain() -> Self

Create a string domain that approximates char values.

source§

fn create_integer_domain() -> Self

Create a string domain that approximates integer values.

source§

fn create_pointer_value_domain() -> Self

Create a string domain that approximates pointer values.

source§

fn create_top_value_domain() -> Self

Creates a top value of the domain.

source§

fn create_empty_string_domain() -> Self

Create a string domain that represents an empty string.

source§

impl From<String> for CharacterInclusionDomain

source§

fn from(string: String) -> Self

Converts to this type from the input type.
source§

impl HasTop for CharacterInclusionDomain

source§

fn top(&self) -> Self

Return a Top value

source§

impl PartialEq for CharacterInclusionDomain

source§

fn eq(&self, other: &CharacterInclusionDomain) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for CharacterInclusionDomain

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for CharacterInclusionDomain

source§

impl StructuralEq for CharacterInclusionDomain

source§

impl StructuralPartialEq for CharacterInclusionDomain

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,