Skip to main content

CaptureBuildRefusal

Enum CaptureBuildRefusal 

Source
pub enum CaptureBuildRefusal<Position, ProducerRefusal> {
    Unbounded {
        bound: CaptureBound,
        at: Position,
    },
    ProducerRefused {
        cause: ProducerRefusal,
        path: TokenPath,
        at: SpanHandle,
    },
}
Expand description

Why a checked capture was not completed.

Variants§

§

Unbounded

One declared capture magnitude was exceeded at this producer position.

Fields

§bound: CaptureBound

The magnitude exceeded.

§at: Position

The producer’s own position for the token that reached it.

§

ProducerRefused

The producer could not read one token after the builder issued its declaration path and producer handle.

Fields

§cause: ProducerRefusal

The producer’s typed reason.

§path: TokenPath

The declaration-local route to the token the producer could not read.

§at: SpanHandle

The handle already bound to the token’s retained source position.

Trait Implementations§

Source§

impl<Position: Clone, ProducerRefusal: Clone> Clone for CaptureBuildRefusal<Position, ProducerRefusal>

Source§

fn clone(&self) -> CaptureBuildRefusal<Position, ProducerRefusal>

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<Position: Debug, ProducerRefusal: Debug> Debug for CaptureBuildRefusal<Position, ProducerRefusal>

Source§

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

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

impl<Position: Eq, ProducerRefusal: Eq> Eq for CaptureBuildRefusal<Position, ProducerRefusal>

Source§

impl<Position: Hash, ProducerRefusal: Hash> Hash for CaptureBuildRefusal<Position, ProducerRefusal>

Source§

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

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<Position: PartialEq, ProducerRefusal: PartialEq> PartialEq for CaptureBuildRefusal<Position, ProducerRefusal>

Source§

fn eq(&self, other: &CaptureBuildRefusal<Position, ProducerRefusal>) -> bool

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

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

Inequality operator !=. Read more
Source§

impl<Position: PartialEq, ProducerRefusal: PartialEq> StructuralPartialEq for CaptureBuildRefusal<Position, ProducerRefusal>

Auto Trait Implementations§

§

impl<Position, ProducerRefusal> Freeze for CaptureBuildRefusal<Position, ProducerRefusal>
where Position: Freeze, ProducerRefusal: Freeze,

§

impl<Position, ProducerRefusal> RefUnwindSafe for CaptureBuildRefusal<Position, ProducerRefusal>
where Position: RefUnwindSafe, ProducerRefusal: RefUnwindSafe,

§

impl<Position, ProducerRefusal> Send for CaptureBuildRefusal<Position, ProducerRefusal>
where Position: Send, ProducerRefusal: Send,

§

impl<Position, ProducerRefusal> Sync for CaptureBuildRefusal<Position, ProducerRefusal>
where Position: Sync, ProducerRefusal: Sync,

§

impl<Position, ProducerRefusal> Unpin for CaptureBuildRefusal<Position, ProducerRefusal>
where Position: Unpin, ProducerRefusal: Unpin,

§

impl<Position, ProducerRefusal> UnsafeUnpin for CaptureBuildRefusal<Position, ProducerRefusal>
where Position: UnsafeUnpin, ProducerRefusal: UnsafeUnpin,

§

impl<Position, ProducerRefusal> UnwindSafe for CaptureBuildRefusal<Position, ProducerRefusal>
where Position: UnwindSafe, ProducerRefusal: UnwindSafe,

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<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 = !

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.