Enum vapcore_light::request::Field[][src]

pub enum Field<T> {
    Scalar(T),
    BackReference(usizeusize),
}

An input to a request.

Variants

Scalar(T)

A pre-specified input.

BackReference(usizeusize)

An input which can be resolved later on. (Request index, output index)

Implementations

impl<T> Field<T>[src]

pub fn back_ref(idx: usize, req: usize) -> Self[src]

Helper for creating a new back-reference field.

pub fn map<F, U>(self, f: F) -> Field<U> where
    F: FnOnce(T) -> U, 
[src]

map a scalar into some other item.

pub fn as_ref(&self) -> Option<&T>[src]

Attempt to get a reference to the inner scalar.

Trait Implementations

impl<T: Clone> Clone for Field<T>[src]

impl<T: Copy> Copy for Field<T>[src]

impl<T: Debug> Debug for Field<T>[src]

impl<T: Decodable> Decodable for Field<T>[src]

impl<T: Encodable> Encodable for Field<T>[src]

impl<T: Eq> Eq for Field<T>[src]

impl<T> From<T> for Field<T>[src]

impl<T: PartialEq> PartialEq<Field<T>> for Field<T>[src]

impl<T> StructuralEq for Field<T>[src]

impl<T> StructuralPartialEq for Field<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Field<T> where
    T: RefUnwindSafe

impl<T> Send for Field<T> where
    T: Send

impl<T> Sync for Field<T> where
    T: Sync

impl<T> Unpin for Field<T> where
    T: Unpin

impl<T> UnwindSafe for Field<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,