pub type CommandEncoderDescriptor<'a> = CommandEncoderDescriptor<Option<&'a str>>;
Expand description

Aliased Type§

struct CommandEncoderDescriptor<'a> {
    pub label: Option<&'a str>,
}

Fields§

§label: Option<&'a str>

Debug label for the command encoder. This will show up in graphics debuggers for easy identification.

Implementations

source§

impl<L> CommandEncoderDescriptor<L>

source

pub fn map_label<K>( &self, fun: impl FnOnce(&L) -> K ) -> CommandEncoderDescriptor<K>

Takes a closure and maps the label of the command encoder descriptor into another.

Trait Implementations

source§

impl<L> Debug for CommandEncoderDescriptor<L>
where L: Debug,

source§

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

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

impl<T> Default for CommandEncoderDescriptor<Option<T>>

source§

fn default() -> CommandEncoderDescriptor<Option<T>>

Returns the “default value” for a type. Read more
source§

impl<L> PartialEq for CommandEncoderDescriptor<L>
where L: PartialEq,

source§

fn eq(&self, other: &CommandEncoderDescriptor<L>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<L> Eq for CommandEncoderDescriptor<L>
where L: Eq,

source§

impl<L> StructuralPartialEq for CommandEncoderDescriptor<L>

source§

impl<L> Clone for CommandEncoderDescriptor<L>
where L: Clone,

source§

fn clone(&self) -> CommandEncoderDescriptor<L>

Returns a copy 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<L> Hash for CommandEncoderDescriptor<L>
where L: Hash,

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<L> StructuralEq for CommandEncoderDescriptor<L>