pub enum BareSegment<'a> {
Text(&'a str),
Slot(&'a str),
}Expand description
A segment from a bare-slot-only template decomposition.
Produced by Template::as_bare_slots. Used by the
prosaic_template_compiled! proc macro for compile-time code generation.
Not intended for general use outside the macro crate.
Variants§
Trait Implementations§
Source§impl<'a> Clone for BareSegment<'a>
impl<'a> Clone for BareSegment<'a>
Source§fn clone(&self) -> BareSegment<'a>
fn clone(&self) -> BareSegment<'a>
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<'a> Debug for BareSegment<'a>
impl<'a> Debug for BareSegment<'a>
Source§impl<'a> PartialEq for BareSegment<'a>
impl<'a> PartialEq for BareSegment<'a>
Source§fn eq(&self, other: &BareSegment<'a>) -> bool
fn eq(&self, other: &BareSegment<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for BareSegment<'a>
impl<'a> StructuralPartialEq for BareSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for BareSegment<'a>
impl<'a> RefUnwindSafe for BareSegment<'a>
impl<'a> Send for BareSegment<'a>
impl<'a> Sync for BareSegment<'a>
impl<'a> Unpin for BareSegment<'a>
impl<'a> UnsafeUnpin for BareSegment<'a>
impl<'a> UnwindSafe for BareSegment<'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