[][src]Struct genco::rust::Rust

pub struct Rust<'el> { /* fields omitted */ }

Rust token specialization.

Implementations

impl<'el> Rust<'el>[src]

pub fn alias<A: Into<Cons<'el>>>(self, alias: A) -> Rust<'el>[src]

Alias the given type.

pub fn with_arguments(self, arguments: Vec<Rust<'el>>) -> Rust<'el>[src]

Add generic arguments to the given type.

pub fn qualified(self) -> Rust<'el>[src]

Change to be a qualified import.

pub fn reference<R: Into<Reference<'el>>>(self, reference: R) -> Rust<'el>[src]

Make the type a reference.

Trait Implementations

impl<'el> Clone for Rust<'el>[src]

impl<'el> Custom for Rust<'el>[src]

type Config = Config

Configuration associated with building a formatting element.

impl<'el> Debug for Rust<'el>[src]

impl<'el> Eq for Rust<'el>[src]

impl<'el> From<&'el Rust<'el>> for Tokens<'el, Rust<'el>>[src]

impl<'el> From<Rust<'el>> for Tokens<'el, Rust<'el>>[src]

impl<'el> Hash for Rust<'el>[src]

impl<'el> Ord for Rust<'el>[src]

impl<'el> PartialEq<Rust<'el>> for Rust<'el>[src]

impl<'el> PartialOrd<Rust<'el>> for Rust<'el>[src]

impl<'el> StructuralEq for Rust<'el>[src]

impl<'el> StructuralPartialEq for Rust<'el>[src]

Auto Trait Implementations

impl<'el> !RefUnwindSafe for Rust<'el>

impl<'el> !Send for Rust<'el>

impl<'el> !Sync for Rust<'el>

impl<'el> Unpin for Rust<'el>

impl<'el> UnwindSafe for Rust<'el>

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.