asn1_rs

Trait ToStatic

Source
pub trait ToStatic {
    type Owned: 'static;

    // Required method
    fn to_static(&self) -> Self::Owned;
}
Expand description

Common trait for objects that can be transformed to a 'static version of self

Required Associated Types§

Source

type Owned: 'static

Required Methods§

Source

fn to_static(&self) -> Self::Owned

Implementations on Foreign Types§

Source§

impl ToStatic for Cow<'_, str>

Source§

type Owned = Cow<'static, str>

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for Cow<'_, [u8]>

Source§

type Owned = Cow<'static, [u8]>

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for bool

Source§

type Owned = bool

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for i8

Source§

type Owned = i8

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for i16

Source§

type Owned = i16

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for i32

Source§

type Owned = i32

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for i64

Source§

type Owned = i64

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for i128

Source§

type Owned = i128

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for isize

Source§

type Owned = isize

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for str

Source§

type Owned = String

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for u8

Source§

type Owned = u8

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for u16

Source§

type Owned = u16

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for u32

Source§

type Owned = u32

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for u64

Source§

type Owned = u64

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for u128

Source§

type Owned = u128

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for usize

Source§

type Owned = usize

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl ToStatic for String

Source§

type Owned = String

Source§

fn to_static(&self) -> <Self as ToStatic>::Owned

Source§

impl<T> ToStatic for Option<T>
where T: ToStatic,

Source§

type Owned = Option<<T as ToStatic>::Owned>

Source§

fn to_static(&self) -> Self::Owned

Source§

impl<T> ToStatic for &T
where T: ToStatic,

Source§

type Owned = <T as ToStatic>::Owned

Source§

fn to_static(&self) -> Self::Owned

Source§

impl<T> ToStatic for Box<T>
where T: ToStatic,

Source§

type Owned = Box<<T as ToStatic>::Owned>

Source§

fn to_static(&self) -> Self::Owned

Source§

impl<T, U> ToStatic for Vec<T>
where T: ToStatic<Owned = U>, U: 'static,

Source§

type Owned = Vec<U>

Source§

fn to_static(&self) -> Self::Owned

Implementors§

Source§

impl ToStatic for Header<'_>

Source§

type Owned = Header<'static>

Source§

impl ToStatic for Sequence<'_>

Source§

type Owned = Sequence<'static>

Source§

impl ToStatic for Set<'_>

Source§

type Owned = Set<'static>