ID3D12GraphicsCommandListVtbl

Struct ID3D12GraphicsCommandListVtbl 

Source
#[repr(C)]
pub struct ID3D12GraphicsCommandListVtbl {
Show 52 fields pub parent: ID3D12CommandListVtbl, pub Close: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList) -> HRESULT, pub Reset: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pAllocator: *mut ID3D12CommandAllocator, pInitialState: *mut ID3D12PipelineState) -> HRESULT, pub ClearState: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pPipelineState: *mut ID3D12PipelineState), pub DrawInstanced: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, VertexCountPerInstance: UINT, InstanceCount: UINT, StartVertexLocation: UINT, StartInstanceLocation: UINT), pub DrawIndexedInstanced: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, IndexCountPerInstance: UINT, InstanceCount: UINT, StartIndexLocation: UINT, BaseVertexLocation: INT, StartInstanceLocation: UINT), pub Dispatch: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, ThreadGroupCountX: UINT, ThreadGroupCountY: UINT, ThreadGroupCountZ: UINT), pub CopyBufferRegion: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pDstBuffer: *mut ID3D12Resource, DstOffset: UINT64, pSrcBuffer: *mut ID3D12Resource, SrcOffset: UINT64, NumBytes: UINT64), pub CopyTextureRegion: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pDst: *const D3D12_TEXTURE_COPY_LOCATION, DstX: UINT, DstY: UINT, DstZ: UINT, pSrc: *const D3D12_TEXTURE_COPY_LOCATION, pSrcBox: *const D3D12_BOX), pub CopyResource: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pDstResource: *mut ID3D12Resource, pSrcResource: *mut ID3D12Resource), pub CopyTiles: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pTiledResource: *mut ID3D12Resource, pTileRegionStartCoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, pTileRegionSize: *const D3D12_TILE_REGION_SIZE, pBuffer: *mut ID3D12Resource, BufferStartOffsetInBytes: UINT64, Flags: D3D12_TILE_COPY_FLAGS), pub ResolveSubresource: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pDstResource: *mut ID3D12Resource, DstSubresource: UINT, pSrcResource: *mut ID3D12Resource, SrcSubresource: UINT, Format: DXGI_FORMAT), pub IASetPrimitiveTopology: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, PrimitiveTopology: D3D12_PRIMITIVE_TOPOLOGY), pub RSSetViewports: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumViewports: UINT, pViewports: *const D3D12_VIEWPORT), pub RSSetScissorRects: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumRects: UINT, pRects: *const D3D12_RECT), pub OMSetBlendFactor: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, BlendFactor: *const [FLOAT; 4]), pub OMSetStencilRef: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, StencilRef: UINT), pub SetPipelineState: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pPipelineState: *mut ID3D12PipelineState), pub ResourceBarrier: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumBarriers: UINT, pBarriers: *const D3D12_RESOURCE_BARRIER), pub ExecuteBundle: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pCommandList: *mut ID3D12GraphicsCommandList), pub SetDescriptorHeaps: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumDescriptorHeaps: UINT, ppDescriptorHeaps: *mut *mut ID3D12DescriptorHeap), pub SetComputeRootSignature: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pRootSignature: *mut ID3D12RootSignature), pub SetGraphicsRootSignature: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pRootSignature: *mut ID3D12RootSignature), pub SetComputeRootDescriptorTable: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BaseDescriptor: D3D12_GPU_DESCRIPTOR_HANDLE), pub SetGraphicsRootDescriptorTable: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BaseDescriptor: D3D12_GPU_DESCRIPTOR_HANDLE), pub SetComputeRoot32BitConstant: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, SrcData: UINT, DestOffsetIn32BitValues: UINT), pub SetGraphicsRoot32BitConstant: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, SrcData: UINT, DestOffsetIn32BitValues: UINT), pub SetComputeRoot32BitConstants: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, Num32BitValuesToSet: UINT, pSrcData: *const c_void, DestOffsetIn32BitValues: UINT), pub SetGraphicsRoot32BitConstants: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, Num32BitValuesToSet: UINT, pSrcData: *const c_void, DestOffsetIn32BitValues: UINT), pub SetComputeRootConstantBufferView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS), pub SetGraphicsRootConstantBufferView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS), pub SetComputeRootShaderResourceView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS), pub SetGraphicsRootShaderResourceView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS), pub SetComputeRootUnorderedAccessView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS), pub SetGraphicsRootUnorderedAccessView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS), pub IASetIndexBuffer: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pView: *const D3D12_INDEX_BUFFER_VIEW), pub IASetVertexBuffers: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, StartSlot: UINT, NumViews: UINT, pViews: *const D3D12_VERTEX_BUFFER_VIEW), pub SOSetTargets: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, StartSlot: UINT, NumViews: UINT, pViews: *const D3D12_STREAM_OUTPUT_BUFFER_VIEW), pub OMSetRenderTargets: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumRenderTargetDescriptors: UINT, pRenderTargetDescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, RTsSingleHandleToDescriptorRange: BOOL, pDepthStencilDescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE), pub ClearDepthStencilView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, DepthStencilView: D3D12_CPU_DESCRIPTOR_HANDLE, ClearFlags: D3D12_CLEAR_FLAGS, Depth: FLOAT, Stencil: UINT8, NumRects: UINT, pRects: *const D3D12_RECT), pub ClearRenderTargetView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RenderTargetView: D3D12_CPU_DESCRIPTOR_HANDLE, ColorRGBA: *const [FLOAT; 4], NumRects: UINT, pRects: *const D3D12_RECT), pub ClearUnorderedAccessViewUint: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, ViewGPUHandleInCurrentHeap: D3D12_GPU_DESCRIPTOR_HANDLE, ViewCPUHandle: D3D12_CPU_DESCRIPTOR_HANDLE, pResource: *mut ID3D12Resource, Values: *const [UINT; 4], NumRects: UINT, pRects: *const D3D12_RECT), pub ClearUnorderedAccessViewFloat: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, ViewGPUHandleInCurrentHeap: D3D12_GPU_DESCRIPTOR_HANDLE, ViewCPUHandle: D3D12_CPU_DESCRIPTOR_HANDLE, pResource: *mut ID3D12Resource, Values: *const [FLOAT; 4], NumRects: UINT, pRects: *const D3D12_RECT), pub DiscardResource: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pResource: *mut ID3D12Resource, pRegion: *const D3D12_DISCARD_REGION), pub BeginQuery: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, Index: UINT), pub EndQuery: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, Index: UINT), pub ResolveQueryData: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, StartIndex: UINT, NumQueries: UINT, pDestinationBuffer: *mut ID3D12Resource, AlignedDestinationBufferOffset: UINT64), pub SetPredication: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pBuffer: *mut ID3D12Resource, AlignedBufferOffset: UINT64, Operation: D3D12_PREDICATION_OP), pub SetMarker: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, Metadata: UINT, pData: *const c_void, Size: UINT), pub BeginEvent: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, Metadata: UINT, pData: *const c_void, Size: UINT), pub EndEvent: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList), pub ExecuteIndirect: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pCommandSignature: *mut ID3D12CommandSignature, MaxCommandCount: UINT, pArgumentBuffer: *mut ID3D12Resource, ArgumentBufferOffset: UINT64, pCountBuffer: *mut ID3D12Resource, CountBufferOffset: UINT64),
}

Fields§

§parent: ID3D12CommandListVtbl§Close: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList) -> HRESULT§Reset: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pAllocator: *mut ID3D12CommandAllocator, pInitialState: *mut ID3D12PipelineState) -> HRESULT§ClearState: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pPipelineState: *mut ID3D12PipelineState)§DrawInstanced: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, VertexCountPerInstance: UINT, InstanceCount: UINT, StartVertexLocation: UINT, StartInstanceLocation: UINT)§DrawIndexedInstanced: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, IndexCountPerInstance: UINT, InstanceCount: UINT, StartIndexLocation: UINT, BaseVertexLocation: INT, StartInstanceLocation: UINT)§Dispatch: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, ThreadGroupCountX: UINT, ThreadGroupCountY: UINT, ThreadGroupCountZ: UINT)§CopyBufferRegion: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pDstBuffer: *mut ID3D12Resource, DstOffset: UINT64, pSrcBuffer: *mut ID3D12Resource, SrcOffset: UINT64, NumBytes: UINT64)§CopyTextureRegion: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pDst: *const D3D12_TEXTURE_COPY_LOCATION, DstX: UINT, DstY: UINT, DstZ: UINT, pSrc: *const D3D12_TEXTURE_COPY_LOCATION, pSrcBox: *const D3D12_BOX)§CopyResource: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pDstResource: *mut ID3D12Resource, pSrcResource: *mut ID3D12Resource)§CopyTiles: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pTiledResource: *mut ID3D12Resource, pTileRegionStartCoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, pTileRegionSize: *const D3D12_TILE_REGION_SIZE, pBuffer: *mut ID3D12Resource, BufferStartOffsetInBytes: UINT64, Flags: D3D12_TILE_COPY_FLAGS)§ResolveSubresource: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pDstResource: *mut ID3D12Resource, DstSubresource: UINT, pSrcResource: *mut ID3D12Resource, SrcSubresource: UINT, Format: DXGI_FORMAT)§IASetPrimitiveTopology: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, PrimitiveTopology: D3D12_PRIMITIVE_TOPOLOGY)§RSSetViewports: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumViewports: UINT, pViewports: *const D3D12_VIEWPORT)§RSSetScissorRects: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumRects: UINT, pRects: *const D3D12_RECT)§OMSetBlendFactor: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, BlendFactor: *const [FLOAT; 4])§OMSetStencilRef: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, StencilRef: UINT)§SetPipelineState: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pPipelineState: *mut ID3D12PipelineState)§ResourceBarrier: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumBarriers: UINT, pBarriers: *const D3D12_RESOURCE_BARRIER)§ExecuteBundle: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pCommandList: *mut ID3D12GraphicsCommandList)§SetDescriptorHeaps: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumDescriptorHeaps: UINT, ppDescriptorHeaps: *mut *mut ID3D12DescriptorHeap)§SetComputeRootSignature: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pRootSignature: *mut ID3D12RootSignature)§SetGraphicsRootSignature: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pRootSignature: *mut ID3D12RootSignature)§SetComputeRootDescriptorTable: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BaseDescriptor: D3D12_GPU_DESCRIPTOR_HANDLE)§SetGraphicsRootDescriptorTable: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BaseDescriptor: D3D12_GPU_DESCRIPTOR_HANDLE)§SetComputeRoot32BitConstant: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, SrcData: UINT, DestOffsetIn32BitValues: UINT)§SetGraphicsRoot32BitConstant: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, SrcData: UINT, DestOffsetIn32BitValues: UINT)§SetComputeRoot32BitConstants: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, Num32BitValuesToSet: UINT, pSrcData: *const c_void, DestOffsetIn32BitValues: UINT)§SetGraphicsRoot32BitConstants: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, Num32BitValuesToSet: UINT, pSrcData: *const c_void, DestOffsetIn32BitValues: UINT)§SetComputeRootConstantBufferView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS)§SetGraphicsRootConstantBufferView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS)§SetComputeRootShaderResourceView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS)§SetGraphicsRootShaderResourceView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS)§SetComputeRootUnorderedAccessView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS)§SetGraphicsRootUnorderedAccessView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS)§IASetIndexBuffer: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pView: *const D3D12_INDEX_BUFFER_VIEW)§IASetVertexBuffers: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, StartSlot: UINT, NumViews: UINT, pViews: *const D3D12_VERTEX_BUFFER_VIEW)§SOSetTargets: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, StartSlot: UINT, NumViews: UINT, pViews: *const D3D12_STREAM_OUTPUT_BUFFER_VIEW)§OMSetRenderTargets: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, NumRenderTargetDescriptors: UINT, pRenderTargetDescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, RTsSingleHandleToDescriptorRange: BOOL, pDepthStencilDescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE)§ClearDepthStencilView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, DepthStencilView: D3D12_CPU_DESCRIPTOR_HANDLE, ClearFlags: D3D12_CLEAR_FLAGS, Depth: FLOAT, Stencil: UINT8, NumRects: UINT, pRects: *const D3D12_RECT)§ClearRenderTargetView: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, RenderTargetView: D3D12_CPU_DESCRIPTOR_HANDLE, ColorRGBA: *const [FLOAT; 4], NumRects: UINT, pRects: *const D3D12_RECT)§ClearUnorderedAccessViewUint: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, ViewGPUHandleInCurrentHeap: D3D12_GPU_DESCRIPTOR_HANDLE, ViewCPUHandle: D3D12_CPU_DESCRIPTOR_HANDLE, pResource: *mut ID3D12Resource, Values: *const [UINT; 4], NumRects: UINT, pRects: *const D3D12_RECT)§ClearUnorderedAccessViewFloat: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, ViewGPUHandleInCurrentHeap: D3D12_GPU_DESCRIPTOR_HANDLE, ViewCPUHandle: D3D12_CPU_DESCRIPTOR_HANDLE, pResource: *mut ID3D12Resource, Values: *const [FLOAT; 4], NumRects: UINT, pRects: *const D3D12_RECT)§DiscardResource: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pResource: *mut ID3D12Resource, pRegion: *const D3D12_DISCARD_REGION)§BeginQuery: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, Index: UINT)§EndQuery: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, Index: UINT)§ResolveQueryData: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, StartIndex: UINT, NumQueries: UINT, pDestinationBuffer: *mut ID3D12Resource, AlignedDestinationBufferOffset: UINT64)§SetPredication: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pBuffer: *mut ID3D12Resource, AlignedBufferOffset: UINT64, Operation: D3D12_PREDICATION_OP)§SetMarker: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, Metadata: UINT, pData: *const c_void, Size: UINT)§BeginEvent: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, Metadata: UINT, pData: *const c_void, Size: UINT)§EndEvent: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList)§ExecuteIndirect: unsafe extern "system" fn(This: *mut ID3D12GraphicsCommandList, pCommandSignature: *mut ID3D12CommandSignature, MaxCommandCount: UINT, pArgumentBuffer: *mut ID3D12Resource, ArgumentBufferOffset: UINT64, pCountBuffer: *mut ID3D12Resource, CountBufferOffset: UINT64)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.