[−][src]Enum genco::tokens::Item
A single element in a set of tokens.
Variants
Literal(ItemStr)
A literal item. Is added as a raw string to the stream of tokens.
LangBox(LangBox<L>)
A language-specific boxed item.
Registered(LangBox<L>)
A language-specific boxed item that is not rendered.
Push a new line unless the current line is empty. Will be flushed on indentation changes.
Push a line. Will be flushed on indentation changes.
Space between language items. Typically a single space.
Multiple spacings in sequence are collapsed into one. A spacing does nothing if at the beginning of a line.
Indentation(i16)
Manage indentation.
OpenQuote(bool)
Switch to handling input as a quote.
The argument indicates whether the string contains any interpolated values.
The string content is quoted with the language-specific [quoting method]. [quoting method]: Lang::Openquote_string
Close the current quote.
Switch on evaluation. Only valid during string handling.
Close evaluation.
Trait Implementations
impl<L> Clone for Item<L> where
L: Lang,
[src]
L: Lang,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<L> Debug for Item<L> where
L: Lang,
[src]
L: Lang,
impl<L> Eq for Item<L> where
L: Lang,
[src]
L: Lang,
impl<L> FormatInto<L> for Item<L> where
L: Lang,
[src]
L: Lang,
fn format_into(self, tokens: &mut Tokens<L>)
[src]
impl<'a, L> From<&'a Item<L>> for Item<L> where
L: Lang,
[src]
L: Lang,
impl<'a, L> From<&'a str> for Item<L> where
L: Lang,
[src]
L: Lang,
impl<L> From<ItemStr> for Item<L> where
L: Lang,
[src]
L: Lang,
impl<L> From<Rc<Item<L>>> for Item<L> where
L: Lang,
[src]
L: Lang,
impl<L> From<Rc<String>> for Item<L> where
L: Lang,
[src]
L: Lang,
impl<L> From<String> for Item<L> where
L: Lang,
[src]
L: Lang,
impl<'a, L: 'a> FromIterator<&'a Item<L>> for Tokens<L> where
L: Lang,
[src]
L: Lang,
fn from_iter<I: IntoIterator<Item = &'a Item<L>>>(iter: I) -> Self
[src]
impl<L> FromIterator<Item<L>> for Tokens<L> where
L: Lang,
[src]
L: Lang,
fn from_iter<I: IntoIterator<Item = Item<L>>>(iter: I) -> Self
[src]
impl<L> PartialEq<Item<L>> for Item<L> where
L: Lang,
[src]
L: Lang,
Auto Trait Implementations
impl<L> !RefUnwindSafe for Item<L>
impl<L> !Send for Item<L>
impl<L> !Sync for Item<L>
impl<L> Unpin for Item<L>
impl<L> !UnwindSafe for Item<L>
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>,