Skip to main content

ExtensionBuiltin

Enum ExtensionBuiltin 

Source
pub enum ExtensionBuiltin {
Show 26 variants Infinitesimal, StandardPart, IsInfinitesimal, IsLimited, InfinitelyClose, GeneratorOf, LimitOf, Provisional, AtTheLimit, TripCount, AffinePower, PolynomialFlow, CycleAt, SearchCandidates, StateSize, EveryNatural, ExactSqrt, ExactExp, ExactLn, ExactPi, ExactE, ExactOmega, HybridFlow, FirstExit, ExactPower, OrderedInfinitesimal,
}
Expand description

A builtin of the exact extension, as a compiled program names it. A builtin of the exact extension.

Variants§

§

Infinitesimal

infinitesimal(name, modulus, allowed…): a fresh infinitesimal whose reciprocal’s residue modulo modulus is one of allowed.

§

StandardPart

standardPart(x[, at]), isInfinitesimal(x[, at]), isLimited(x[, at]), infinitelyClose(x, y[, at]): the standard part and the predicates, relative to the infinitesimal at when it is given.

§

IsInfinitesimal

§

IsLimited

§

InfinitelyClose

§

GeneratorOf

The infinite integer 1/dt an infinitesimal generates.

§

LimitOf

A value read under a named limit rule.

§

Provisional

A search’s answer with its evidence: the steps it took and the revisions it made.

§

AtTheLimit

The statement At the limit, take …: names a rule, answers nothing.

§

TripCount

§

AffinePower

§

PolynomialFlow

§

CycleAt

§

SearchCandidates

§

StateSize

§

EveryNatural

A search over every natural that reached a run unresolved.

§

ExactSqrt

The exact square root, exponential and natural logarithm, which sqrt, exp and ln are in a context that declares an exact type.

§

ExactExp

§

ExactLn

§

ExactPi

π and e exactly, which pi and e are in a context that declares an exact type.

§

ExactE

§

ExactOmega

ω, the first infinite ordinal, which omega is in an Ordinal context.

§

HybridFlow

The end state of a loop whose state flows between jumps.

§

FirstExit

How many passes a loop makes whose guard compares terms linear in a counter it steps.

§

ExactPower

base ** exponent to an exponent that is an exact number, which ** and pow are when their exponent is one: a fraction p/q takes the real q-th root to the p-th power.

§

OrderedInfinitesimal

orderedInfinitesimal(name, larger, smaller, modulus, allowed…): a fresh infinitesimal much smaller than the infinitesimal larger and much larger than smaller, either bound nothing when the declaration does not name it.

Implementations§

Source§

impl Builtin

Source

pub const ALL: [Builtin; 26]

Source

pub fn name(self) -> &'static str

The builtin’s name as a program calls it.

Source

pub fn named(name: &str) -> Option<Builtin>

The builtin a program calls by name.

Trait Implementations§

Source§

impl Clone for Builtin

Source§

fn clone(&self) -> Builtin

Returns a duplicate 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 Builtin

Source§

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

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

impl Hash for Builtin

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

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

impl PartialEq for Builtin

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Builtin

Source§

impl Eq for Builtin

Source§

impl StructuralPartialEq for Builtin

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
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.