pub enum PatternKind<F> {
BuiltIn(BuiltInFormatter),
Custom {
placeholder: Cow<'static, str>,
factory: F,
},
}
Variants§
Trait Implementations§
Source§impl<F: Clone> Clone for PatternKind<F>
impl<F: Clone> Clone for PatternKind<F>
Source§fn clone(&self) -> PatternKind<F>
fn clone(&self) -> PatternKind<F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F: Debug> Debug for PatternKind<F>
impl<F: Debug> Debug for PatternKind<F>
Source§impl<F: PartialEq> PartialEq for PatternKind<F>
impl<F: PartialEq> PartialEq for PatternKind<F>
impl<F: Eq> Eq for PatternKind<F>
impl<F> StructuralPartialEq for PatternKind<F>
Auto Trait Implementations§
impl<F> Freeze for PatternKind<F>where
F: Freeze,
impl<F> RefUnwindSafe for PatternKind<F>where
F: RefUnwindSafe,
impl<F> Send for PatternKind<F>where
F: Send,
impl<F> Sync for PatternKind<F>where
F: Sync,
impl<F> Unpin for PatternKind<F>where
F: Unpin,
impl<F> UnwindSafe for PatternKind<F>where
F: 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