Enum tdtxt::prelude::Component [−][src]
pub enum Component<'a> {
Text(&'a str),
Project(&'a str),
Context(&'a str),
Custom {
key: &'a str,
separator: &'a str,
value: &'a str,
},
}
Expand description
A single component of a Description
.
Variants of this enum are created by Components
, which is an iterator
over all components of a description. This iterator is returned by calling
Description::components
.
Variants
Text(&'a str)
A text component, e.g. Hello World
.
Tuple Fields of Text
0: &'a str
Project(&'a str)
A full project component, e.g. +project
.
Tuple Fields of Project
0: &'a str
Context(&'a str)
A full context component, e.g. @context
.
Tuple Fields of Context
0: &'a str
A full custom tag component, e.g. key:value
.
Fields of Custom
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Component<'a>
impl<'a> UnwindSafe for Component<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more