pub struct CommandEncoder { /* private fields */ }Implementations§
Source§impl CommandEncoder
impl CommandEncoder
Sourcepub unsafe fn raw_handle(&self) -> CommandBuffer
pub unsafe fn raw_handle(&self) -> CommandBuffer
§Safety
- The command buffer handle must not be manually destroyed
Trait Implementations§
Source§impl CommandEncoder for CommandEncoder
impl CommandEncoder for CommandEncoder
type A = Api
Source§unsafe fn begin_encoding(
&mut self,
label: Option<&str>,
) -> Result<(), DeviceError>
unsafe fn begin_encoding( &mut self, label: Option<&str>, ) -> Result<(), DeviceError>
Begin encoding a new command buffer. Read more
Source§unsafe fn end_encoding(&mut self) -> Result<CommandBuffer, DeviceError>
unsafe fn end_encoding(&mut self) -> Result<CommandBuffer, DeviceError>
Return a fresh
CommandBuffer holding the recorded commands. Read moreSource§unsafe fn discard_encoding(&mut self)
unsafe fn discard_encoding(&mut self)
Discard the command list under construction. Read more
Source§unsafe fn reset_all<I>(&mut self, cmd_bufs: I)where
I: Iterator<Item = CommandBuffer>,
unsafe fn reset_all<I>(&mut self, cmd_bufs: I)where
I: Iterator<Item = CommandBuffer>,
Reclaim all resources belonging to this
CommandEncoder. Read moreunsafe fn transition_buffers<'a, T>(&mut self, barriers: T)
unsafe fn transition_textures<'a, T>(&mut self, barriers: T)
unsafe fn clear_buffer(&mut self, buffer: &Buffer, range: Range<u64>)
unsafe fn copy_buffer_to_buffer<T>(
&mut self,
src: &Buffer,
dst: &Buffer,
regions: T,
)where
T: Iterator<Item = BufferCopy>,
Source§unsafe fn copy_texture_to_texture<T>(
&mut self,
src: &Texture,
src_usage: TextureUses,
dst: &Texture,
regions: T,
)where
T: Iterator<Item = TextureCopy>,
unsafe fn copy_texture_to_texture<T>(
&mut self,
src: &Texture,
src_usage: TextureUses,
dst: &Texture,
regions: T,
)where
T: Iterator<Item = TextureCopy>,
Copy from one texture to another.
Works with a single array layer.
Note:
dst current usage has to be wgt::TextureUses::COPY_DST.
Note: the copy extent is in physical size (rounded to the block size)Source§unsafe fn copy_buffer_to_texture<T>(
&mut self,
src: &Buffer,
dst: &Texture,
regions: T,
)where
T: Iterator<Item = BufferTextureCopy>,
unsafe fn copy_buffer_to_texture<T>(
&mut self,
src: &Buffer,
dst: &Texture,
regions: T,
)where
T: Iterator<Item = BufferTextureCopy>,
Copy from buffer to texture.
Works with a single array layer.
Note:
dst current usage has to be wgt::TextureUses::COPY_DST.
Note: the copy extent is in physical size (rounded to the block size)Source§unsafe fn copy_texture_to_buffer<T>(
&mut self,
src: &Texture,
src_usage: TextureUses,
dst: &Buffer,
regions: T,
)where
T: Iterator<Item = BufferTextureCopy>,
unsafe fn copy_texture_to_buffer<T>(
&mut self,
src: &Texture,
src_usage: TextureUses,
dst: &Buffer,
regions: T,
)where
T: Iterator<Item = BufferTextureCopy>,
Copy from texture to buffer.
Works with a single array layer.
Note: the copy extent is in physical size (rounded to the block size)
unsafe fn write_timestamp(&mut self, set: &QuerySet, index: u32)
unsafe fn read_acceleration_structure_compact_size( &mut self, acceleration_structure: &AccelerationStructure, buffer: &Buffer, )
unsafe fn reset_queries(&mut self, set: &QuerySet, range: Range<u32>)
unsafe fn copy_query_results( &mut self, set: &QuerySet, range: Range<u32>, buffer: &Buffer, offset: u64, stride: NonZero<u64>, )
Source§unsafe fn build_acceleration_structures<'a, T>(
&mut self,
descriptor_count: u32,
descriptors: T,
)where
Api: 'a,
T: IntoIterator<Item = BuildAccelerationStructureDescriptor<'a, Buffer, AccelerationStructure>>,
unsafe fn build_acceleration_structures<'a, T>(
&mut self,
descriptor_count: u32,
descriptors: T,
)where
Api: 'a,
T: IntoIterator<Item = BuildAccelerationStructureDescriptor<'a, Buffer, AccelerationStructure>>,
To get the required sizes for the buffer allocations use
get_acceleration_structure_build_sizes per descriptor
All buffers must be synchronized externally
All buffer regions, which are written to may only be passed once per function call,
with the exception of updates in the same descriptor.
Consequences of this limitation: Read moreunsafe fn place_acceleration_structure_barrier( &mut self, barrier: AccelerationStructureBarrier, )
unsafe fn set_acceleration_structure_dependencies( _command_buffers: &[&CommandBuffer], _dependencies: &[&AccelerationStructure], )
Source§unsafe fn begin_render_pass(
&mut self,
desc: &RenderPassDescriptor<'_, QuerySet, TextureView>,
) -> Result<(), DeviceError>
unsafe fn begin_render_pass( &mut self, desc: &RenderPassDescriptor<'_, QuerySet, TextureView>, ) -> Result<(), DeviceError>
Begin a new render pass, clearing all active bindings. Read more
Source§unsafe fn end_render_pass(&mut self)
unsafe fn end_render_pass(&mut self)
End the current render pass. Read more
Source§unsafe fn set_bind_group(
&mut self,
layout: &PipelineLayout,
index: u32,
group: &BindGroup,
dynamic_offsets: &[u32],
)
unsafe fn set_bind_group( &mut self, layout: &PipelineLayout, index: u32, group: &BindGroup, dynamic_offsets: &[u32], )
Source§unsafe fn set_immediates(
&mut self,
layout: &PipelineLayout,
offset_bytes: u32,
data: &[u32],
)
unsafe fn set_immediates( &mut self, layout: &PipelineLayout, offset_bytes: u32, data: &[u32], )
Sets a range in immediate data. Read more
unsafe fn insert_debug_marker(&mut self, label: &str)
unsafe fn begin_debug_marker(&mut self, group_label: &str)
unsafe fn end_debug_marker(&mut self)
unsafe fn set_render_pipeline(&mut self, pipeline: &RenderPipeline)
unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, Buffer>, format: IndexFormat, )
unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, binding: BufferBinding<'a, Buffer>, )
unsafe fn set_viewport(&mut self, rect: &Rect<f32>, depth_range: Range<f32>)
unsafe fn set_scissor_rect(&mut self, rect: &Rect<u32>)
unsafe fn set_stencil_reference(&mut self, value: u32)
unsafe fn set_blend_constants(&mut self, color: &[f32; 4])
unsafe fn draw( &mut self, first_vertex: u32, vertex_count: u32, first_instance: u32, instance_count: u32, )
unsafe fn draw_indexed( &mut self, first_index: u32, index_count: u32, base_vertex: i32, first_instance: u32, instance_count: u32, )
unsafe fn draw_mesh_tasks( &mut self, group_count_x: u32, group_count_y: u32, group_count_z: u32, )
unsafe fn draw_indirect( &mut self, buffer: &Buffer, offset: u64, draw_count: u32, )
unsafe fn draw_indexed_indirect( &mut self, buffer: &Buffer, offset: u64, draw_count: u32, )
unsafe fn draw_mesh_tasks_indirect( &mut self, buffer: &<<CommandEncoder as CommandEncoder>::A as Api>::Buffer, offset: u64, draw_count: u32, )
unsafe fn draw_indirect_count( &mut self, buffer: &Buffer, offset: u64, count_buffer: &Buffer, count_offset: u64, max_count: u32, )
unsafe fn draw_indexed_indirect_count( &mut self, buffer: &Buffer, offset: u64, count_buffer: &Buffer, count_offset: u64, max_count: u32, )
unsafe fn draw_mesh_tasks_indirect_count( &mut self, buffer: &<<CommandEncoder as CommandEncoder>::A as Api>::Buffer, offset: u64, count_buffer: &Buffer, count_offset: u64, max_count: u32, )
Source§unsafe fn begin_compute_pass(
&mut self,
desc: &ComputePassDescriptor<'_, QuerySet>,
)
unsafe fn begin_compute_pass( &mut self, desc: &ComputePassDescriptor<'_, QuerySet>, )
Begin a new compute pass, clearing all active bindings. Read more
Source§unsafe fn end_compute_pass(&mut self)
unsafe fn end_compute_pass(&mut self)
End the current compute pass. Read more
unsafe fn set_compute_pipeline(&mut self, pipeline: &ComputePipeline)
unsafe fn dispatch(&mut self, count: [u32; 3])
unsafe fn dispatch_indirect(&mut self, buffer: &Buffer, offset: u64)
unsafe fn copy_acceleration_structure_to_acceleration_structure( &mut self, src: &AccelerationStructure, dst: &AccelerationStructure, copy: AccelerationStructureCopy, )
Source§impl Debug for CommandEncoder
impl Debug for CommandEncoder
Source§impl Drop for CommandEncoder
impl Drop for CommandEncoder
Source§impl DynResource for CommandEncoder
impl DynResource for CommandEncoder
Auto Trait Implementations§
impl Freeze for CommandEncoder
impl !RefUnwindSafe for CommandEncoder
impl Send for CommandEncoder
impl Sync for CommandEncoder
impl Unpin for CommandEncoder
impl UnsafeUnpin for CommandEncoder
impl !UnwindSafe for CommandEncoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<C> DynCommandEncoder for Cwhere
C: CommandEncoder + DynResource,
impl<C> DynCommandEncoder for Cwhere
C: CommandEncoder + DynResource,
unsafe fn begin_encoding( &mut self, label: Option<&str>, ) -> Result<(), DeviceError>
unsafe fn discard_encoding(&mut self)
unsafe fn end_encoding( &mut self, ) -> Result<Box<dyn DynCommandBuffer>, DeviceError>
unsafe fn reset_all(&mut self, command_buffers: Vec<Box<dyn DynCommandBuffer>>)
unsafe fn transition_buffers( &mut self, barriers: &[BufferBarrier<'_, dyn DynBuffer>], )
unsafe fn transition_textures( &mut self, barriers: &[TextureBarrier<'_, dyn DynTexture>], )
unsafe fn clear_buffer( &mut self, buffer: &(dyn DynBuffer + 'static), range: Range<u64>, )
unsafe fn copy_buffer_to_buffer( &mut self, src: &(dyn DynBuffer + 'static), dst: &(dyn DynBuffer + 'static), regions: &[BufferCopy], )
unsafe fn copy_texture_to_texture( &mut self, src: &(dyn DynTexture + 'static), src_usage: TextureUses, dst: &(dyn DynTexture + 'static), regions: &[TextureCopy], )
unsafe fn copy_buffer_to_texture( &mut self, src: &(dyn DynBuffer + 'static), dst: &(dyn DynTexture + 'static), regions: &[BufferTextureCopy], )
unsafe fn copy_texture_to_buffer( &mut self, src: &(dyn DynTexture + 'static), src_usage: TextureUses, dst: &(dyn DynBuffer + 'static), regions: &[BufferTextureCopy], )
unsafe fn set_bind_group( &mut self, layout: &(dyn DynPipelineLayout + 'static), index: u32, group: &(dyn DynBindGroup + 'static), dynamic_offsets: &[u32], )
unsafe fn set_immediates( &mut self, layout: &(dyn DynPipelineLayout + 'static), offset_bytes: u32, data: &[u32], )
unsafe fn insert_debug_marker(&mut self, label: &str)
unsafe fn begin_debug_marker(&mut self, group_label: &str)
unsafe fn end_debug_marker(&mut self)
unsafe fn begin_query(&mut self, set: &(dyn DynQuerySet + 'static), index: u32)
unsafe fn end_query(&mut self, set: &(dyn DynQuerySet + 'static), index: u32)
unsafe fn write_timestamp( &mut self, set: &(dyn DynQuerySet + 'static), index: u32, )
unsafe fn reset_queries( &mut self, set: &(dyn DynQuerySet + 'static), range: Range<u32>, )
unsafe fn copy_query_results( &mut self, set: &(dyn DynQuerySet + 'static), range: Range<u32>, buffer: &(dyn DynBuffer + 'static), offset: u64, stride: NonZero<u64>, )
unsafe fn begin_render_pass( &mut self, desc: &RenderPassDescriptor<'_, dyn DynQuerySet, dyn DynTextureView>, ) -> Result<(), DeviceError>
unsafe fn end_render_pass(&mut self)
unsafe fn set_viewport(&mut self, rect: &Rect<f32>, depth_range: Range<f32>)
unsafe fn set_scissor_rect(&mut self, rect: &Rect<u32>)
unsafe fn set_stencil_reference(&mut self, value: u32)
unsafe fn set_blend_constants(&mut self, color: &[f32; 4])
unsafe fn draw( &mut self, first_vertex: u32, vertex_count: u32, first_instance: u32, instance_count: u32, )
unsafe fn draw_indexed( &mut self, first_index: u32, index_count: u32, base_vertex: i32, first_instance: u32, instance_count: u32, )
unsafe fn draw_mesh_tasks( &mut self, group_count_x: u32, group_count_y: u32, group_count_z: u32, )
unsafe fn draw_indirect( &mut self, buffer: &(dyn DynBuffer + 'static), offset: u64, draw_count: u32, )
unsafe fn draw_indexed_indirect( &mut self, buffer: &(dyn DynBuffer + 'static), offset: u64, draw_count: u32, )
unsafe fn draw_mesh_tasks_indirect( &mut self, buffer: &(dyn DynBuffer + 'static), offset: u64, draw_count: u32, )
unsafe fn draw_indirect_count( &mut self, buffer: &(dyn DynBuffer + 'static), offset: u64, count_buffer: &(dyn DynBuffer + 'static), count_offset: u64, max_count: u32, )
unsafe fn draw_indexed_indirect_count( &mut self, buffer: &(dyn DynBuffer + 'static), offset: u64, count_buffer: &(dyn DynBuffer + 'static), count_offset: u64, max_count: u32, )
unsafe fn draw_mesh_tasks_indirect_count( &mut self, buffer: &(dyn DynBuffer + 'static), offset: u64, count_buffer: &(dyn DynBuffer + 'static), count_offset: u64, max_count: u32, )
unsafe fn begin_compute_pass( &mut self, desc: &ComputePassDescriptor<'_, dyn DynQuerySet>, )
unsafe fn end_compute_pass(&mut self)
unsafe fn set_compute_pipeline( &mut self, pipeline: &(dyn DynComputePipeline + 'static), )
unsafe fn dispatch(&mut self, count: [u32; 3])
unsafe fn dispatch_indirect( &mut self, buffer: &(dyn DynBuffer + 'static), offset: u64, )
unsafe fn set_render_pipeline( &mut self, pipeline: &(dyn DynRenderPipeline + 'static), )
unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, dyn DynBuffer>, format: IndexFormat, )
unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, binding: BufferBinding<'a, dyn DynBuffer>, )
unsafe fn build_acceleration_structures<'a>( &mut self, descriptors: &'a [BuildAccelerationStructureDescriptor<'a, dyn DynBuffer, dyn DynAccelerationStructure>], )
unsafe fn place_acceleration_structure_barrier( &mut self, barrier: AccelerationStructureBarrier, )
unsafe fn copy_acceleration_structure_to_acceleration_structure( &mut self, src: &(dyn DynAccelerationStructure + 'static), dst: &(dyn DynAccelerationStructure + 'static), copy: AccelerationStructureCopy, )
unsafe fn read_acceleration_structure_compact_size( &mut self, acceleration_structure: &(dyn DynAccelerationStructure + 'static), buf: &(dyn DynBuffer + 'static), )
unsafe fn set_acceleration_structure_dependencies( &self, command_buffers: &[Box<dyn DynCommandBuffer>], dependencies: &[&(dyn DynAccelerationStructure + 'static)], )
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.