Struct wgpu_core::hub::Global[][src]

pub struct Global<G: GlobalIdentityHandlerFactory> {
    pub instance: Instance,
    pub surfaces: Registry<Surface, SurfaceId, G>,
    // some fields omitted
}

Fields

instance: Instancesurfaces: Registry<Surface, SurfaceId, G>

Implementations

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn command_encoder_run_compute_pass<B: GfxBackend>(
    &self,
    encoder_id: CommandEncoderId,
    pass: &ComputePass
) -> Result<(), ComputePassError>
[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn command_encoder_write_timestamp<B: GfxBackend>(
    &self,
    command_encoder_id: CommandEncoderId,
    query_set_id: QuerySetId,
    query_index: u32
) -> Result<(), QueryError>
[src]

pub fn command_encoder_resolve_query_set<B: GfxBackend>(
    &self,
    command_encoder_id: CommandEncoderId,
    query_set_id: QuerySetId,
    start_query: u32,
    query_count: u32,
    destination: BufferId,
    destination_offset: BufferAddress
) -> Result<(), QueryError>
[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn command_encoder_run_render_pass<B: GfxBackend>(
    &self,
    encoder_id: CommandEncoderId,
    pass: &RenderPass
) -> Result<(), RenderPassError>
[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn command_encoder_copy_buffer_to_buffer<B: GfxBackend>(
    &self,
    command_encoder_id: CommandEncoderId,
    source: BufferId,
    source_offset: BufferAddress,
    destination: BufferId,
    destination_offset: BufferAddress,
    size: BufferAddress
) -> Result<(), CopyError>
[src]

pub fn command_encoder_copy_buffer_to_texture<B: GfxBackend>(
    &self,
    command_encoder_id: CommandEncoderId,
    source: &ImageCopyBuffer,
    destination: &ImageCopyTexture,
    copy_size: &Extent3d
) -> Result<(), CopyError>
[src]

pub fn command_encoder_copy_texture_to_buffer<B: GfxBackend>(
    &self,
    command_encoder_id: CommandEncoderId,
    source: &ImageCopyTexture,
    destination: &ImageCopyBuffer,
    copy_size: &Extent3d
) -> Result<(), CopyError>
[src]

pub fn command_encoder_copy_texture_to_texture<B: GfxBackend>(
    &self,
    command_encoder_id: CommandEncoderId,
    source: &ImageCopyTexture,
    destination: &ImageCopyTexture,
    copy_size: &Extent3d
) -> Result<(), CopyError>
[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn command_encoder_finish<B: GfxBackend>(
    &self,
    encoder_id: CommandEncoderId,
    _desc: &CommandBufferDescriptor<Label<'_>>
) -> (CommandBufferId, Option<CommandEncoderError>)
[src]

pub fn command_encoder_push_debug_group<B: GfxBackend>(
    &self,
    encoder_id: CommandEncoderId,
    label: &str
) -> Result<(), CommandEncoderError>
[src]

pub fn command_encoder_insert_debug_marker<B: GfxBackend>(
    &self,
    encoder_id: CommandEncoderId,
    label: &str
) -> Result<(), CommandEncoderError>
[src]

pub fn command_encoder_pop_debug_group<B: GfxBackend>(
    &self,
    encoder_id: CommandEncoderId
) -> Result<(), CommandEncoderError>
[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn queue_write_buffer<B: GfxBackend>(
    &self,
    queue_id: QueueId,
    buffer_id: BufferId,
    buffer_offset: BufferAddress,
    data: &[u8]
) -> Result<(), QueueWriteError>
[src]

pub fn queue_write_texture<B: GfxBackend>(
    &self,
    queue_id: QueueId,
    destination: &ImageCopyTexture,
    data: &[u8],
    data_layout: &ImageDataLayout,
    size: &Extent3d
) -> Result<(), QueueWriteError>
[src]

pub fn queue_submit<B: GfxBackend>(
    &self,
    queue_id: QueueId,
    command_buffer_ids: &[CommandBufferId]
) -> Result<(), QueueSubmitError>
[src]

pub fn queue_get_timestamp_period<B: GfxBackend>(
    &self,
    queue_id: QueueId
) -> Result<f32, InvalidQueue>
[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn adapter_get_swap_chain_preferred_format<B: GfxBackend>(
    &self,
    adapter_id: AdapterId,
    surface_id: SurfaceId
) -> Result<TextureFormat, GetSwapChainPreferredFormatError>
[src]

pub fn device_features<B: GfxBackend>(
    &self,
    device_id: DeviceId
) -> Result<Features, InvalidDevice>
[src]

pub fn device_limits<B: GfxBackend>(
    &self,
    device_id: DeviceId
) -> Result<Limits, InvalidDevice>
[src]

pub fn device_downlevel_properties<B: GfxBackend>(
    &self,
    device_id: DeviceId
) -> Result<DownlevelProperties, InvalidDevice>
[src]

pub fn device_create_buffer<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &BufferDescriptor<'_>,
    id_in: Input<G, BufferId>
) -> (BufferId, Option<CreateBufferError>)
[src]

pub fn device_set_buffer_sub_data<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    buffer_id: BufferId,
    offset: BufferAddress,
    data: &[u8]
) -> Result<(), BufferAccessError>
[src]

pub fn device_get_buffer_sub_data<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    buffer_id: BufferId,
    offset: BufferAddress,
    data: &mut [u8]
) -> Result<(), BufferAccessError>
[src]

pub fn buffer_label<B: GfxBackend>(&self, id: BufferId) -> String[src]

pub fn buffer_destroy<B: GfxBackend>(
    &self,
    buffer_id: BufferId
) -> Result<(), DestroyError>
[src]

pub fn buffer_drop<B: GfxBackend>(&self, buffer_id: BufferId, wait: bool)[src]

pub fn device_create_texture<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &TextureDescriptor<'_>,
    id_in: Input<G, TextureId>
) -> (TextureId, Option<CreateTextureError>)
[src]

pub fn texture_label<B: GfxBackend>(&self, id: TextureId) -> String[src]

pub fn texture_destroy<B: GfxBackend>(
    &self,
    texture_id: TextureId
) -> Result<(), DestroyError>
[src]

pub fn texture_drop<B: GfxBackend>(&self, texture_id: TextureId, wait: bool)[src]

pub fn texture_create_view<B: GfxBackend>(
    &self,
    texture_id: TextureId,
    desc: &TextureViewDescriptor<'_>,
    id_in: Input<G, TextureViewId>
) -> (TextureViewId, Option<CreateTextureViewError>)
[src]

pub fn texture_view_label<B: GfxBackend>(&self, id: TextureViewId) -> String[src]

pub fn texture_view_drop<B: GfxBackend>(
    &self,
    texture_view_id: TextureViewId,
    wait: bool
) -> Result<(), TextureViewDestroyError>
[src]

pub fn device_create_sampler<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &SamplerDescriptor<'_>,
    id_in: Input<G, SamplerId>
) -> (SamplerId, Option<CreateSamplerError>)
[src]

pub fn sampler_label<B: GfxBackend>(&self, id: SamplerId) -> String[src]

pub fn sampler_drop<B: GfxBackend>(&self, sampler_id: SamplerId)[src]

pub fn device_create_bind_group_layout<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &BindGroupLayoutDescriptor<'_>,
    id_in: Input<G, BindGroupLayoutId>
) -> (BindGroupLayoutId, Option<CreateBindGroupLayoutError>)
[src]

pub fn bind_group_layout_label<B: GfxBackend>(
    &self,
    id: BindGroupLayoutId
) -> String
[src]

pub fn bind_group_layout_drop<B: GfxBackend>(
    &self,
    bind_group_layout_id: BindGroupLayoutId
)
[src]

pub fn device_create_pipeline_layout<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &PipelineLayoutDescriptor<'_>,
    id_in: Input<G, PipelineLayoutId>
) -> (PipelineLayoutId, Option<CreatePipelineLayoutError>)
[src]

pub fn pipeline_layout_label<B: GfxBackend>(
    &self,
    id: PipelineLayoutId
) -> String
[src]

pub fn pipeline_layout_drop<B: GfxBackend>(
    &self,
    pipeline_layout_id: PipelineLayoutId
)
[src]

pub fn device_create_bind_group<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &BindGroupDescriptor<'_>,
    id_in: Input<G, BindGroupId>
) -> (BindGroupId, Option<CreateBindGroupError>)
[src]

pub fn bind_group_label<B: GfxBackend>(&self, id: BindGroupId) -> String[src]

pub fn bind_group_drop<B: GfxBackend>(&self, bind_group_id: BindGroupId)[src]

pub fn device_create_shader_module<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &ShaderModuleDescriptor<'_>,
    source: ShaderModuleSource<'_>,
    id_in: Input<G, ShaderModuleId>
) -> (ShaderModuleId, Option<CreateShaderModuleError>)
[src]

pub fn shader_module_label<B: GfxBackend>(&self, id: ShaderModuleId) -> String[src]

pub fn shader_module_drop<B: GfxBackend>(
    &self,
    shader_module_id: ShaderModuleId
)
[src]

pub fn device_create_command_encoder<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &CommandEncoderDescriptor<Label<'_>>,
    id_in: Input<G, CommandEncoderId>
) -> (CommandEncoderId, Option<CommandAllocatorError>)
[src]

pub fn command_buffer_label<B: GfxBackend>(&self, id: CommandBufferId) -> String[src]

pub fn command_encoder_drop<B: GfxBackend>(
    &self,
    command_encoder_id: CommandEncoderId
)
[src]

pub fn command_buffer_drop<B: GfxBackend>(
    &self,
    command_buffer_id: CommandBufferId
)
[src]

pub fn device_create_render_bundle_encoder(
    &self,
    device_id: DeviceId,
    desc: &RenderBundleEncoderDescriptor<'_>
) -> (RenderBundleEncoderId, Option<CreateRenderBundleError>)
[src]

pub fn render_bundle_encoder_finish<B: GfxBackend>(
    &self,
    bundle_encoder: RenderBundleEncoder,
    desc: &RenderBundleDescriptor<'_>,
    id_in: Input<G, RenderBundleId>
) -> (RenderBundleId, Option<RenderBundleError>)
[src]

pub fn render_bundle_label<B: GfxBackend>(&self, id: RenderBundleId) -> String[src]

pub fn render_bundle_drop<B: GfxBackend>(
    &self,
    render_bundle_id: RenderBundleId
)
[src]

pub fn device_create_query_set<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &QuerySetDescriptor,
    id_in: Input<G, QuerySetId>
) -> (QuerySetId, Option<CreateQuerySetError>)
[src]

pub fn query_set_drop<B: GfxBackend>(&self, query_set_id: QuerySetId)[src]

pub fn device_create_render_pipeline<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &RenderPipelineDescriptor<'_>,
    id_in: Input<G, RenderPipelineId>,
    implicit_pipeline_ids: Option<ImplicitPipelineIds<'_, G>>
) -> (RenderPipelineId, Option<CreateRenderPipelineError>)
[src]

pub fn render_pipeline_get_bind_group_layout<B: GfxBackend>(
    &self,
    pipeline_id: RenderPipelineId,
    index: u32,
    id_in: Input<G, BindGroupLayoutId>
) -> (BindGroupLayoutId, Option<GetBindGroupLayoutError>)
[src]

Get an ID of one of the bind group layouts. The ID adds a refcount, which needs to be released by calling bind_group_layout_drop.

pub fn render_pipeline_label<B: GfxBackend>(
    &self,
    id: RenderPipelineId
) -> String
[src]

pub fn render_pipeline_drop<B: GfxBackend>(
    &self,
    render_pipeline_id: RenderPipelineId
)
[src]

pub fn device_create_compute_pipeline<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    desc: &ComputePipelineDescriptor<'_>,
    id_in: Input<G, ComputePipelineId>,
    implicit_pipeline_ids: Option<ImplicitPipelineIds<'_, G>>
) -> (ComputePipelineId, Option<CreateComputePipelineError>)
[src]

pub fn compute_pipeline_get_bind_group_layout<B: GfxBackend>(
    &self,
    pipeline_id: ComputePipelineId,
    index: u32,
    id_in: Input<G, BindGroupLayoutId>
) -> (BindGroupLayoutId, Option<GetBindGroupLayoutError>)
[src]

Get an ID of one of the bind group layouts. The ID adds a refcount, which needs to be released by calling bind_group_layout_drop.

pub fn compute_pipeline_label<B: GfxBackend>(
    &self,
    id: ComputePipelineId
) -> String
[src]

pub fn compute_pipeline_drop<B: GfxBackend>(
    &self,
    compute_pipeline_id: ComputePipelineId
)
[src]

pub fn device_create_swap_chain<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    surface_id: SurfaceId,
    desc: &SwapChainDescriptor
) -> (SwapChainId, Option<CreateSwapChainError>)
[src]

pub fn device_poll<B: GfxBackend>(
    &self,
    device_id: DeviceId,
    force_wait: bool
) -> Result<(), WaitIdleError>
[src]

pub fn poll_all_devices(&self, force_wait: bool) -> Result<(), WaitIdleError>[src]

pub fn device_label<B: GfxBackend>(&self, id: DeviceId) -> String[src]

pub fn device_drop<B: GfxBackend>(&self, device_id: DeviceId)[src]

pub fn buffer_map_async<B: GfxBackend>(
    &self,
    buffer_id: BufferId,
    range: Range<BufferAddress>,
    op: BufferMapOperation
) -> Result<(), BufferAccessError>
[src]

pub fn buffer_get_mapped_range<B: GfxBackend>(
    &self,
    buffer_id: BufferId,
    offset: BufferAddress,
    size: Option<BufferSize>
) -> Result<(*mut u8, u64), BufferAccessError>
[src]

pub fn buffer_unmap<B: GfxBackend>(
    &self,
    buffer_id: BufferId
) -> Result<(), BufferAccessError>
[src]

pub fn start_capture<B: GfxBackend>(
    &self,
    device_id: DeviceId
) -> Result<(), InvalidDevice>
[src]

pub fn stop_capture<B: GfxBackend>(
    &self,
    device_id: DeviceId
) -> Result<(), InvalidDevice>
[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn new(name: &str, factory: G, backends: BackendBit) -> Self[src]

pub fn clear_backend<B: GfxBackend>(&self, _dummy: ())[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn surface_drop(&self, id: SurfaceId)[src]

pub fn enumerate_adapters(
    &self,
    inputs: AdapterInputs<'_, Input<G, AdapterId>>
) -> Vec<AdapterId>
[src]

pub fn request_adapter(
    &self,
    desc: &RequestAdapterOptions,
    inputs: AdapterInputs<'_, Input<G, AdapterId>>
) -> Result<AdapterId, RequestAdapterError>
[src]

pub fn adapter_get_info<B: GfxBackend>(
    &self,
    adapter_id: AdapterId
) -> Result<AdapterInfo, InvalidAdapter>
[src]

pub fn adapter_get_texture_format_features<B: GfxBackend>(
    &self,
    adapter_id: AdapterId,
    format: TextureFormat
) -> Result<TextureFormatFeatures, InvalidAdapter>
[src]

pub fn adapter_features<B: GfxBackend>(
    &self,
    adapter_id: AdapterId
) -> Result<Features, InvalidAdapter>
[src]

pub fn adapter_limits<B: GfxBackend>(
    &self,
    adapter_id: AdapterId
) -> Result<Limits, InvalidAdapter>
[src]

pub fn adapter_downlevel_properties<B: GfxBackend>(
    &self,
    adapter_id: AdapterId
) -> Result<DownlevelProperties, InvalidAdapter>
[src]

pub fn adapter_drop<B: GfxBackend>(&self, adapter_id: AdapterId)[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn adapter_request_device<B: GfxBackend>(
    &self,
    adapter_id: AdapterId,
    desc: &DeviceDescriptor<'_>,
    trace_path: Option<&Path>,
    id_in: Input<G, DeviceId>
) -> (DeviceId, Option<RequestDeviceError>)
[src]

impl<G: GlobalIdentityHandlerFactory> Global<G>[src]

pub fn swap_chain_get_current_texture_view<B: GfxBackend>(
    &self,
    swap_chain_id: SwapChainId,
    view_id_in: Input<G, TextureViewId>
) -> Result<SwapChainOutput, SwapChainError>
[src]

pub fn swap_chain_present<B: GfxBackend>(
    &self,
    swap_chain_id: SwapChainId
) -> Result<SwapChainStatus, SwapChainError>
[src]

Trait Implementations

impl<G: Debug + GlobalIdentityHandlerFactory> Debug for Global<G>[src]

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

Formats the value using the given formatter. Read more

impl<G: GlobalIdentityHandlerFactory> Drop for Global<G>[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<G> !RefUnwindSafe for Global<G>

impl<G> Send for Global<G> where
    <G as IdentityHandlerFactory<Id<Adapter<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<BindGroup<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<BindGroupLayout<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<Buffer<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<CommandBuffer<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<ComputePipeline<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<Device<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<PipelineLayout<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<QuerySet<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<RenderBundle>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<RenderPipeline<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<Sampler<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<ShaderModule<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<Surface>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<SwapChain<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<Texture<Backend>>>>::Filter: Send,
    <G as IdentityHandlerFactory<Id<TextureView<Backend>>>>::Filter: Send

impl<G> Sync for Global<G> where
    <G as IdentityHandlerFactory<Id<Adapter<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<BindGroup<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<BindGroupLayout<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<Buffer<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<CommandBuffer<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<ComputePipeline<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<Device<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<PipelineLayout<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<QuerySet<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<RenderBundle>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<RenderPipeline<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<Sampler<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<ShaderModule<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<Surface>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<SwapChain<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<Texture<Backend>>>>::Filter: Sync,
    <G as IdentityHandlerFactory<Id<TextureView<Backend>>>>::Filter: Sync

impl<G> Unpin for Global<G> where
    <G as IdentityHandlerFactory<Id<Adapter<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<BindGroup<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<BindGroupLayout<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<Buffer<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<CommandBuffer<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<ComputePipeline<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<Device<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<PipelineLayout<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<QuerySet<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<RenderBundle>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<RenderPipeline<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<Sampler<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<ShaderModule<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<Surface>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<SwapChain<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<Texture<Backend>>>>::Filter: Unpin,
    <G as IdentityHandlerFactory<Id<TextureView<Backend>>>>::Filter: Unpin

impl<G> !UnwindSafe for Global<G>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Downcast<T> for T

pub fn downcast(&self) -> &T

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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

Performs the conversion.

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.

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

Performs the conversion.

impl<T> Upcast<T> for T

pub fn upcast(&self) -> Option<&T>