Struct mm0b_parser::Type[][src]

#[repr(C)]
pub struct Type(_);
Expand description

An argument binder in a term/def or axiom/theorem.

  • Bit 63 (the high bit of the high byte) is 1 if this is a bound variable.
  • Bits 56-62 (the low 7 bits of the high byte) give the sort of the variable.
  • Bits 0-55 (the low 7 bytes) are a bitset giving the set of bound variables earlier in the list that this variable is allowed to depend on.

Implementations

Get the u64 comprising a type

Make a new Type of sort sort_num

A brand new Type; bool indicates whether it’s bound.

Annotate a Type with a sort.

Since types are often built incrementally, you may have built a “blank” type that you knew was bound, but you’ll only know it’s sort later. This is how you add the sort. If the Type already had a sort, it’s overwritten by sort_id.

Add a dependency on bv_idx

Does this type depend on the bth bound variable?

This is 0 indexed.

True if this argument is a bound variable.

The sort of this variable.

If this is the type of a bound variable, return a u64 whose only activated bit is the bit indicating which bv it is.

The POSITION (1 - 55) of this bound variable, NOT the literal u64.

Does this Type have dependencies?

If this is a regular/not-bound variable, return a u64 whose only activated bits are the ones marking the bvs on which it depends.

Assuming this is a regular/not-bound variable, return a u64 whose only activated bits are the ones marking the bvs on which it depends.

Get the high bit only, which holds the boundedness and the sort.

Are these two types totally bitwise-disjoint

Trait Implementations

Get the bytes of this value. Read more

Get the bytes of this value mutably. Read more

The resulting type after applying the & operator.

Performs the & operation. Read more

Performs the &= operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Performs the |= operation. 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

Returns the “default value” for a type. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

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

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

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

This method tests for !=.

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

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.