[][src]Struct abi_stable::type_layout::tagging::FromLiteral

pub struct FromLiteral<T>(pub T);

Used to convert many types to Tag.

Methods

impl FromLiteral<bool>[src]

pub const fn to_tag(self) -> Tag[src]

Converts the wrapped bool into a Tag.

impl FromLiteral<&'static str>[src]

pub const fn to_tag(self) -> Tag[src]

Converts the wrapped &'static str into a Tag.

impl FromLiteral<StaticStr>[src]

pub const fn to_tag(self) -> Tag[src]

Converts the wrapped &'static str into a Tag.

impl FromLiteral<i64>[src]

pub const fn to_tag(self) -> Tag[src]

Converts the wrapped i64 into a Tag.

impl FromLiteral<Tag>[src]

pub const fn to_tag(self) -> Tag[src]

Converts the wrapped Tag into a Tag.

Auto Trait Implementations

impl<T> Send for FromLiteral<T> where
    T: Send

impl<T> Sync for FromLiteral<T> where
    T: Sync

impl<T> Unpin for FromLiteral<T> where
    T: Unpin

impl<T> UnwindSafe for FromLiteral<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for FromLiteral<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<This> TransmuteElement for This where
    This: ?Sized
[src]

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

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

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.

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.

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

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

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

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

type Type = T

The same type as Self. Read more

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The error type returned when the conversion fails.