Struct windows_gen::Literal[][src]

pub struct Literal { /* fields omitted */ }
Expand description

A literal of some sort

Implementations

impl Literal[src]

pub fn usize_unsuffixed(n: usize) -> Self[src]

pub fn u32_unsuffixed(n: u32) -> Self[src]

pub fn u16_unsuffixed(n: u16) -> Self[src]

pub fn u8_unsuffixed(n: u8) -> Self[src]

pub fn byte_string(s: &[u8]) -> Self[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl ToTokens for Literal[src]

fn to_tokens(&self, tokens: &mut TokenStream)[src]

Write self to the given TokenStream.

fn to_token_stream(&self) -> TokenStream[src]

Convert self directly into a TokenStream object. Read more

fn into_token_stream(self) -> TokenStream where
    Self: Sized
[src]

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

impl RefUnwindSafe for Literal

impl Send for Literal

impl Sync for Literal

impl Unpin for Literal

impl UnwindSafe for Literal

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> 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.