Skip to main content

Refusal

Enum Refusal 

Source
#[non_exhaustive]
pub enum Refusal {
#[non_exhaustive]
Stopped { phase: Phase, },
#[non_exhaustive]
Memory { phase: Phase, limit_bytes: u64, needed_bytes: Option<u64>, },
#[non_exhaustive]
Occurrences { occurrences: u64, limit: u64, },
#[non_exhaustive]
Terms { terms: u64, limit: u64, },
#[non_exhaustive]
Output { what: &'static str, estimate_bytes: u64, limit_bytes: u64, least_bytes: Option<u64>, },
#[non_exhaustive]
Work { limit: u64, },
#[non_exhaustive]
Pixels { pixels: u64, limit: u64, },
#[non_exhaustive]
Elimination { what: Bound, limit: u64, },
#[non_exhaustive]
Atoms { atoms: u64, limit: u64, },
#[non_exhaustive]
Workspace { what: Held, count: u64, limit: u64, },
#[non_exhaustive]
Index { what: Space, count: u64, most: u64, }, }
Expand description

Why a call was given up without an answer: a bound, set or default, refused it, or the caller’s stop ended it. A refusal says nothing of the input. With the bound lifted, the call may answer.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

#[non_exhaustive]
Stopped

The caller’s stop ended the call.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§phase: Phase

What the call was doing.

§

#[non_exhaustive]
Memory

The call would have held more memory than its bound.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§phase: Phase

What the call was doing.

§limit_bytes: u64
§needed_bytes: Option<u64>

What the call would have needed, where it was estimated before anything was made.

§

#[non_exhaustive]
Occurrences

A sequent unfolds to more occurrences than the bound. The count is exact, or the number at which counting stopped.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§occurrences: u64

How many occurrences, or a number past the bound.

§limit: u64

The bound, Limits::occurrences.

§

#[non_exhaustive]
Terms

A sequent’s atoms unfold to more first-order terms than the bound, or a proof’s instance table holds more entries. The count is exact, or the number at which counting stopped.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§terms: u64

How many terms or entries, or a number past the bound.

§limit: u64

The bound, Limits::terms.

§

#[non_exhaustive]
Output

An output is estimated past its bound. Nothing was made.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§what: &'static str

What was to be made: a derivation, a drawing.

§estimate_bytes: u64

The estimate.

§limit_bytes: u64
§least_bytes: Option<u64>

The least a smaller form of the output would take, where one was tried: a compact derivation’s lower bound.

§

#[non_exhaustive]
Work

A call did the most work its bound allows.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§limit: u64

The bound, Limits::work.

§

#[non_exhaustive]
Pixels

An image would have more pixels than its options allow.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§pixels: u64

The image’s pixels.

§limit: u64

The bound of the image’s options.

§

#[non_exhaustive]
Elimination

Cut elimination reached its bound on steps or on a proof’s nodes.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§what: Bound

The bound reached.

§

#[non_exhaustive]
Atoms

A truth table would have more atoms than the bound, and so more rows than it allows.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§atoms: u64

The sequent’s atoms.

§limit: u64

The bound, Limits::table_atoms.

§

#[non_exhaustive]
Workspace

A workspace would hold more than a bound of Limits::workspace allows.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§what: Held

What is counted.

§count: u64

The count.

§limit: u64

The bound.

§

#[non_exhaustive]
Index

A count passes what a representation’s indices can name, whatever the bounds say.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§what: Space

What is counted.

§count: u64

The count, or a number past the most.

§most: u64

The most the representation holds.

Implementations§

Source§

impl Refusal

Source

pub const fn code(&self) -> &'static str

Returns the stable name of the refusal that a program branches on.

Source

pub const fn setting(&self) -> Option<&'static str>

Returns the settings key whose bound refused the call. None for the stop and for a representation’s width, which no setting lifts.

Source

pub const fn is_stop(&self) -> bool

Returns whether the caller’s stop ended the call, not a bound.

Trait Implementations§

Source§

impl Clone for Refusal

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Refusal

Source§

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

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

impl Display for Refusal

Source§

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

Writes the reason in a sentence without a full stop.

Source§

impl Eq for Refusal

Source§

impl Error for Refusal

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Refusal> for Error

Source§

fn from(refusal: Refusal) -> Self

Wraps the refusal.

Source§

impl PartialEq for Refusal

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Serialize for Refusal

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 StructuralPartialEq for Refusal

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

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

Source§

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

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

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

Source§

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

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

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

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

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.