pub enum TextPart {
Literal(String),
Prop(String),
Theme(String, Pos),
}Expand description
A piece of the text between two tags.
Variants§
Literal(String)
Text as written.
Prop(String)
{name}: the value of prop name.
Theme(String, Pos)
{theme.name}, which is a color and so never text: written where it
is, so the resolver can say so there.
Trait Implementations§
impl StructuralPartialEq for TextPart
Auto Trait Implementations§
impl Forget for TextPart
impl Freeze for TextPart
impl Move for TextPart
impl RefUnwindSafe for TextPart
impl Send for TextPartwhere
RawVecInner: Send,
impl Sync for TextPartwhere
RawVecInner: Sync,
impl Unpin for TextPart
impl UnsafeUnpin for TextPart
impl UnwindSafe for TextPartwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more