[][src]Enum web_glitz::task::ContextId

pub enum ContextId {
    Any,
    Id(u64),
}

Returned from GpuTask::context_id, identifies the context(s) a GpuTask may be used with.

See GpuTask::context_id for details.

Variants

Any
Id(u64)

Implementations

impl ContextId[src]

pub fn combine(
    &self,
    other: ContextId
) -> Result<ContextId, IncompatibleContextIds>
[src]

Attempts to combine two ContextIds, or returns an [IncompatibleContextIds] error when they are incompatible.

Two ContextIds are compatible if:

Two ContextIds are incompatible if:

  • Both are ContextId::Id and the two IDs are not identical. In this case an [IncompatibleContextIds] error will be returned.

Trait Implementations

impl Clone for ContextId[src]

impl Copy for ContextId[src]

impl Debug for ContextId[src]

impl PartialEq<ContextId> for ContextId[src]

impl StructuralPartialEq for ContextId[src]

Auto Trait Implementations

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> From<T> for T[src]

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

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

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.