Struct nannou_wgpu::CommandBufferDescriptor [−]
#[repr(C)]pub struct CommandBufferDescriptor<L> {
pub label: L,
}
Expand description
Describes a [CommandBuffer
].
Fields
label: L
Debug label of this command buffer.
Implementations
impl<L> CommandBufferDescriptor<L>
impl<L> CommandBufferDescriptor<L>
pub fn map_label<K>(
&self,
fun: impl FnOnce(&L) -> K
) -> CommandBufferDescriptor<K>
pub fn map_label<K>(
&self,
fun: impl FnOnce(&L) -> K
) -> CommandBufferDescriptor<K>
Trait Implementations
impl<L> Clone for CommandBufferDescriptor<L> where
L: Clone,
impl<L> Clone for CommandBufferDescriptor<L> where
L: Clone,
pub fn clone(&self) -> CommandBufferDescriptor<L>
pub fn clone(&self) -> CommandBufferDescriptor<L>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<L> Debug for CommandBufferDescriptor<L> where
L: Debug,
impl<L> Debug for CommandBufferDescriptor<L> where
L: Debug,
impl<L> Default for CommandBufferDescriptor<L> where
L: Default,
impl<L> Default for CommandBufferDescriptor<L> where
L: Default,
pub fn default() -> CommandBufferDescriptor<L>
pub fn default() -> CommandBufferDescriptor<L>
Returns the “default value” for a type. Read more
impl<'de, L> Deserialize<'de> for CommandBufferDescriptor<L> where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for CommandBufferDescriptor<L> where
L: Deserialize<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<CommandBufferDescriptor<L>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<CommandBufferDescriptor<L>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<L> Hash for CommandBufferDescriptor<L> where
L: Hash,
impl<L> Hash for CommandBufferDescriptor<L> where
L: Hash,
impl<L> PartialEq<CommandBufferDescriptor<L>> for CommandBufferDescriptor<L> where
L: PartialEq<L>,
impl<L> PartialEq<CommandBufferDescriptor<L>> for CommandBufferDescriptor<L> where
L: PartialEq<L>,
pub fn eq(&self, other: &CommandBufferDescriptor<L>) -> bool
pub fn eq(&self, other: &CommandBufferDescriptor<L>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &CommandBufferDescriptor<L>) -> bool
pub fn ne(&self, other: &CommandBufferDescriptor<L>) -> bool
This method tests for !=
.
impl<L> Serialize for CommandBufferDescriptor<L> where
L: Serialize,
impl<L> Serialize for CommandBufferDescriptor<L> where
L: Serialize,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<L> Eq for CommandBufferDescriptor<L> where
L: Eq,
impl<L> StructuralEq for CommandBufferDescriptor<L>
impl<L> StructuralPartialEq for CommandBufferDescriptor<L>
Auto Trait Implementations
impl<L> RefUnwindSafe for CommandBufferDescriptor<L> where
L: RefUnwindSafe,
impl<L> Send for CommandBufferDescriptor<L> where
L: Send,
impl<L> Sync for CommandBufferDescriptor<L> where
L: Sync,
impl<L> Unpin for CommandBufferDescriptor<L> where
L: Unpin,
impl<L> UnwindSafe for CommandBufferDescriptor<L> where
L: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.