[−][src]Struct genco::rust::Rust
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.
fn format(
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'el> Ord for Rust<'el>
[src]
fn cmp(&self, other: &Rust<'el>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'el> PartialEq<Rust<'el>> for Rust<'el>
[src]
impl<'el> PartialOrd<Rust<'el>> for Rust<'el>
[src]
fn partial_cmp(&self, other: &Rust<'el>) -> Option<Ordering>
[src]
fn lt(&self, other: &Rust<'el>) -> bool
[src]
fn le(&self, other: &Rust<'el>) -> bool
[src]
fn gt(&self, other: &Rust<'el>) -> bool
[src]
fn ge(&self, other: &Rust<'el>) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,