Trait spirv_cross2::ToStatic

source ·
pub trait ToStatic: Sealed {
    type Static<'a>
       where 'a: 'static;

    // Required method
    fn to_static(&self) -> Self::Static<'static>;
}
Expand description

Helper trait to detach objects with lifetimes attached to a compiler or context.

Required Associated Types§

source

type Static<'a> where 'a: 'static

The static type to return.

Required Methods§

source

fn to_static(&self) -> Self::Static<'static>

Clone the object into an instance with 'static lifetime.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ToStatic for DecorationValue<'_>

source§

type Static<'a> = DecorationValue<'static> where 'a: 'static

source§

impl ToStatic for AllResources<'_>

source§

type Static<'a> = AllResources<'static> where 'a: 'static

source§

impl ToStatic for BuiltinResource<'_>

source§

type Static<'a> = BuiltinResource<'static> where 'a: 'static

source§

impl ToStatic for Resource<'_>

source§

type Static<'a> = Resource<'static> where 'a: 'static