Trait staticize::Staticize

source ·
pub trait Staticize {
    type Static: 'static + ?Sized;

    // Provided methods
    fn static_type_id() -> TypeId { ... }
    fn static_type_name() -> &'static str { ... }
}
Expand description

Provides a handy Static associated type which should resolve to a 'static version of T for all T that implement Staticize.

Required Associated Types§

source

type Static: 'static + ?Sized

A 'static version of T.

Provided Methods§

source

fn static_type_id() -> TypeId

Returns the TypeId of the 'static version of T

source

fn static_type_name() -> &'static str

Returns the type name of the 'static version of T

Implementations on Foreign Types§

source§

impl Staticize for AtomicU8

source§

impl Staticize for f32

§

type Static = f32

source§

impl Staticize for u8

§

type Static = u8

source§

impl Staticize for AtomicU64

source§

impl Staticize for isize

source§

impl Staticize for i16

§

type Static = i16

source§

impl Staticize for AtomicU16

source§

impl<'a, T: Staticize> Staticize for &'a [T]where <T as Staticize>::Static: Sized,

§

type Static = &'static [<T as Staticize>::Static]

source§

impl Staticize for str

§

type Static = str

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize, I: Staticize, J: Staticize, K: Staticize, L: Staticize, M: Staticize> Staticize for (A, B, C, D, E, F, G, H, I, J, K, L, M)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized, <I as Staticize>::Static: Sized, <J as Staticize>::Static: Sized, <K as Staticize>::Static: Sized, <L as Staticize>::Static: Sized, <M as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static, <I as Staticize>::Static, <J as Staticize>::Static, <K as Staticize>::Static, <L as Staticize>::Static, <M as Staticize>::Static)

source§

impl<T: Staticize> Staticize for Option<T>where <T as Staticize>::Static: Sized,

source§

impl Staticize for AtomicI16

source§

impl Staticize for AtomicBool

source§

impl Staticize for AtomicUsize

source§

impl<T: Staticize> Staticize for Bound<T>where <T as Staticize>::Static: Sized,

§

type Static = Bound<<T as Staticize>::Static>

source§

impl<A: Staticize, B: Staticize> Staticize for (A, B)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static)

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize, I: Staticize, J: Staticize, K: Staticize, L: Staticize, M: Staticize, N: Staticize, O: Staticize> Staticize for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized, <I as Staticize>::Static: Sized, <J as Staticize>::Static: Sized, <K as Staticize>::Static: Sized, <L as Staticize>::Static: Sized, <M as Staticize>::Static: Sized, <N as Staticize>::Static: Sized, <O as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static, <I as Staticize>::Static, <J as Staticize>::Static, <K as Staticize>::Static, <L as Staticize>::Static, <M as Staticize>::Static, <N as Staticize>::Static, <O as Staticize>::Static)

source§

impl Staticize for i32

§

type Static = i32

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize> Staticize for (A, B, C, D)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static)

source§

impl Staticize for ()

§

type Static = ()

source§

impl Staticize for Ordering

source§

impl Staticize for AtomicI64

source§

impl Staticize for AtomicIsize

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize, I: Staticize, J: Staticize, K: Staticize, L: Staticize, M: Staticize, N: Staticize> Staticize for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized, <I as Staticize>::Static: Sized, <J as Staticize>::Static: Sized, <K as Staticize>::Static: Sized, <L as Staticize>::Static: Sized, <M as Staticize>::Static: Sized, <N as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static, <I as Staticize>::Static, <J as Staticize>::Static, <K as Staticize>::Static, <L as Staticize>::Static, <M as Staticize>::Static, <N as Staticize>::Static)

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize> Staticize for (A, B, C, D, E, F, G)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static)

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize> Staticize for (A, B, C, D, E)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static)

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize, I: Staticize, J: Staticize> Staticize for (A, B, C, D, E, F, G, H, I, J)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized, <I as Staticize>::Static: Sized, <J as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static, <I as Staticize>::Static, <J as Staticize>::Static)

source§

impl Staticize for u32

§

type Static = u32

source§

impl Staticize for i8

§

type Static = i8

source§

impl Staticize for char

§

type Static = char

source§

impl<'a, T> Staticize for &'a Twhere T: Staticize + ?Sized,

§

type Static = &'static <T as Staticize>::Static

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize, I: Staticize> Staticize for (A, B, C, D, E, F, G, H, I)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized, <I as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static, <I as Staticize>::Static)

source§

impl Staticize for AtomicI8

source§

impl<A: Staticize> Staticize for (A,)where <A as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static,)

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize, I: Staticize, J: Staticize, K: Staticize> Staticize for (A, B, C, D, E, F, G, H, I, J, K)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized, <I as Staticize>::Static: Sized, <J as Staticize>::Static: Sized, <K as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static, <I as Staticize>::Static, <J as Staticize>::Static, <K as Staticize>::Static)

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize> Staticize for (A, B, C, D, E, F, G, H)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static)

source§

impl Staticize for u16

§

type Static = u16

source§

impl Staticize for AtomicI32

source§

impl<T: Staticize, E: Staticize> Staticize for Result<T, E>where <T as Staticize>::Static: Sized, <E as Staticize>::Static: Sized,

§

type Static = Result<<T as Staticize>::Static, <E as Staticize>::Static>

source§

impl Staticize for u64

§

type Static = u64

source§

impl Staticize for i128

§

type Static = i128

source§

impl Staticize for u128

§

type Static = u128

source§

impl Staticize for usize

source§

impl Staticize for f64

§

type Static = f64

source§

impl Staticize for i64

§

type Static = i64

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize, I: Staticize, J: Staticize, K: Staticize, L: Staticize, M: Staticize, N: Staticize, O: Staticize, P: Staticize> Staticize for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized, <I as Staticize>::Static: Sized, <J as Staticize>::Static: Sized, <K as Staticize>::Static: Sized, <L as Staticize>::Static: Sized, <M as Staticize>::Static: Sized, <N as Staticize>::Static: Sized, <O as Staticize>::Static: Sized, <P as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static, <I as Staticize>::Static, <J as Staticize>::Static, <K as Staticize>::Static, <L as Staticize>::Static, <M as Staticize>::Static, <N as Staticize>::Static, <O as Staticize>::Static, <P as Staticize>::Static)

source§

impl Staticize for bool

§

type Static = bool

source§

impl<A: Staticize, B: Staticize, C: Staticize> Staticize for (A, B, C)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static)

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize> Staticize for (A, B, C, D, E, F)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static)

source§

impl<A: Staticize, B: Staticize, C: Staticize, D: Staticize, E: Staticize, F: Staticize, G: Staticize, H: Staticize, I: Staticize, J: Staticize, K: Staticize, L: Staticize> Staticize for (A, B, C, D, E, F, G, H, I, J, K, L)where <A as Staticize>::Static: Sized, <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized, <D as Staticize>::Static: Sized, <E as Staticize>::Static: Sized, <F as Staticize>::Static: Sized, <G as Staticize>::Static: Sized, <H as Staticize>::Static: Sized, <I as Staticize>::Static: Sized, <J as Staticize>::Static: Sized, <K as Staticize>::Static: Sized, <L as Staticize>::Static: Sized,

§

type Static = (<A as Staticize>::Static, <B as Staticize>::Static, <C as Staticize>::Static, <D as Staticize>::Static, <E as Staticize>::Static, <F as Staticize>::Static, <G as Staticize>::Static, <H as Staticize>::Static, <I as Staticize>::Static, <J as Staticize>::Static, <K as Staticize>::Static, <L as Staticize>::Static)

source§

impl Staticize for AtomicU32

source§

impl<B: Staticize, C: Staticize> Staticize for ControlFlow<B, C>where <B as Staticize>::Static: Sized, <C as Staticize>::Static: Sized,

Implementors§