[−][src]Struct proc_macro2::Literal
Methods
impl Literal[src]
impl Literalpub fn integer(s: i64) -> Literal[src]
pub fn integer(s: i64) -> Literalpub fn u8(n: u8) -> Literal[src]
pub fn u8(n: u8) -> Literalpub fn u16(n: u16) -> Literal[src]
pub fn u16(n: u16) -> Literalpub fn u32(n: u32) -> Literal[src]
pub fn u32(n: u32) -> Literalpub fn u64(n: u64) -> Literal[src]
pub fn u64(n: u64) -> Literalpub fn usize(n: usize) -> Literal[src]
pub fn usize(n: usize) -> Literalpub fn i8(n: i8) -> Literal[src]
pub fn i8(n: i8) -> Literalpub fn i16(n: i16) -> Literal[src]
pub fn i16(n: i16) -> Literalpub fn i32(n: i32) -> Literal[src]
pub fn i32(n: i32) -> Literalpub fn i64(n: i64) -> Literal[src]
pub fn i64(n: i64) -> Literalpub fn isize(n: isize) -> Literal[src]
pub fn isize(n: isize) -> Literalpub fn float(f: f64) -> Literal[src]
pub fn float(f: f64) -> Literalpub fn f64(f: f64) -> Literal[src]
pub fn f64(f: f64) -> Literalpub fn f32(f: f32) -> Literal[src]
pub fn f32(f: f32) -> Literalpub fn string(string: &str) -> Literal[src]
pub fn string(string: &str) -> Literalpub fn character(ch: char) -> Literal[src]
pub fn character(ch: char) -> Literalpub fn byte_string(s: &[u8]) -> Literal[src]
pub fn byte_string(s: &[u8]) -> Literalpub fn byte_char(b: u8) -> Literal[src]
pub fn byte_char(b: u8) -> Literalpub fn doccomment(s: &str) -> Literal[src]
pub fn doccomment(s: &str) -> Literalpub fn raw_string(s: &str, pounds: usize) -> Literal[src]
pub fn raw_string(s: &str, pounds: usize) -> Literalpub fn raw_byte_string(s: &str, pounds: usize) -> Literal[src]
pub fn raw_byte_string(s: &str, pounds: usize) -> LiteralTrait Implementations
impl Clone for Literal[src]
impl Clone for Literalfn clone(&self) -> Literal[src]
fn clone(&self) -> Literalfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Display for Literal[src]
impl Display for Literalimpl Debug for Literal[src]
impl Debug for LiteralAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<E> SpecializationError for E[src]
impl<E> SpecializationError for Eimpl<T> Erased for T[src]
impl<T> Erased for Timpl<T> Send for T where
T: ?Sized, [src]
impl<T> Send for T where
T: ?Sized, impl<T> Sync for T where
T: ?Sized, [src]
impl<T> Sync for T where
T: ?Sized, impl<T> Erased for T
impl<T> Erased for T