pub enum IrTextPart {
Text(String),
Placeholder(IrExpression),
}Variants§
Text(String)
Placeholder(IrExpression)
Trait Implementations§
Source§impl Clone for IrTextPart
impl Clone for IrTextPart
Source§fn clone(&self) -> IrTextPart
fn clone(&self) -> IrTextPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IrTextPart
impl Debug for IrTextPart
Source§impl PartialEq for IrTextPart
impl PartialEq for IrTextPart
Source§fn eq(&self, other: &IrTextPart) -> bool
fn eq(&self, other: &IrTextPart) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for IrTextPart
impl StructuralPartialEq for IrTextPart
Auto Trait Implementations§
impl Freeze for IrTextPart
impl RefUnwindSafe for IrTextPart
impl Send for IrTextPart
impl Sync for IrTextPart
impl Unpin for IrTextPart
impl UnsafeUnpin for IrTextPart
impl UnwindSafe for IrTextPart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.