pub enum Segment {
Charset(Vec<char>),
Literal(String),
}Expand description
One piece of a combinations pattern.
Variants§
Charset(Vec<char>)
Variable: select one char from the charset based on a radix digit.
Literal(String)
Fixed: always emit this string (e.g., a literal separator).
Auto Trait Implementations§
impl Forget for Segment
impl Freeze for Segment
impl Move for Segment
impl RefUnwindSafe for Segment
impl Send for Segmentwhere
RawVecInner: Send,
impl Sync for Segmentwhere
RawVecInner: Sync,
impl Unpin for Segment
impl UnsafeUnpin for Segmentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<char>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Segmentwhere
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