pub enum BraceSegment<'a> {
Literal(&'a str),
Expr(&'a str),
}Expand description
A segment produced by scanning {expr} interpolation syntax.
Variants§
Literal(&'a str)
A literal run of text with no substitution.
Expr(&'a str)
The source text between { and }.
Trait Implementations§
Source§impl<'a> Debug for BraceSegment<'a>
impl<'a> Debug for BraceSegment<'a>
Source§impl<'a> PartialEq for BraceSegment<'a>
impl<'a> PartialEq for BraceSegment<'a>
impl<'a> Eq for BraceSegment<'a>
impl<'a> StructuralPartialEq for BraceSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for BraceSegment<'a>
impl<'a> RefUnwindSafe for BraceSegment<'a>
impl<'a> Send for BraceSegment<'a>
impl<'a> Sync for BraceSegment<'a>
impl<'a> Unpin for BraceSegment<'a>
impl<'a> UnsafeUnpin for BraceSegment<'a>
impl<'a> UnwindSafe for BraceSegment<'a>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.