[−][src]Struct genco::python::Python
Python token specialization.
Implementations
impl<'el> Python<'el>[src]
pub fn alias<N: Into<Cons<'el>>>(self, new_alias: N) -> Python<'el>[src]
Set alias for python element.
pub fn name<N: Into<Cons<'el>>>(self, new_name: N) -> Python<'el>[src]
Set name for python element.
Trait Implementations
impl<'el> Clone for Python<'el>[src]
impl<'el> Custom for Python<'el>[src]
type Extra = ()
Extra data associated with building a formatting element.
fn format(
&self,
out: &mut Formatter,
_extra: &mut Self::Extra,
_level: usize
) -> Result[src]
&self,
out: &mut Formatter,
_extra: &mut Self::Extra,
_level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
extra: &mut Self::Extra,
level: usize
) -> Result[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
extra: &mut Self::Extra,
level: usize
) -> Result
impl<'el> Debug for Python<'el>[src]
impl<'el> Display for Python<'el>[src]
impl<'el> Eq for Python<'el>[src]
impl<'el> From<&'el Python<'el>> for Tokens<'el, Python<'el>>[src]
impl<'el> From<Python<'el>> for Tokens<'el, Python<'el>>[src]
impl<'el> Hash for Python<'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 Python<'el>[src]
fn cmp(&self, other: &Python<'el>) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<'el> PartialEq<Python<'el>> for Python<'el>[src]
impl<'el> PartialOrd<Python<'el>> for Python<'el>[src]
fn partial_cmp(&self, other: &Python<'el>) -> Option<Ordering>[src]
fn lt(&self, other: &Python<'el>) -> bool[src]
fn le(&self, other: &Python<'el>) -> bool[src]
fn gt(&self, other: &Python<'el>) -> bool[src]
fn ge(&self, other: &Python<'el>) -> bool[src]
impl<'el> StructuralEq for Python<'el>[src]
impl<'el> StructuralPartialEq for Python<'el>[src]
Auto Trait Implementations
impl<'el> !RefUnwindSafe for Python<'el>
impl<'el> !Send for Python<'el>
impl<'el> !Sync for Python<'el>
impl<'el> Unpin for Python<'el>
impl<'el> UnwindSafe for Python<'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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,