Struct tui_markup::generator::helper::NoopCustomTagParser
source · [−]pub struct NoopCustomTagParser<S>(_);Expand description
A fake custom tag parser which always fail.
Why need this
If a tag convertor support custom tag and you also want it to be optional and impl Default trait,
normally you will use a Option<T: CustomTagParser<Custom>> in the convertor.
But the user still need to provide some type of that T(which the usually can’t) even if they do not want custom tag.
With this type, you can add a T = NoopCustomTagParser<Custom> in struct to make them happy.
Trait Implementations
sourceimpl<S> CustomTagParser for NoopCustomTagParser<S>
impl<S> CustomTagParser for NoopCustomTagParser<S>
sourceimpl<S: Debug> Debug for NoopCustomTagParser<S>
impl<S: Debug> Debug for NoopCustomTagParser<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for NoopCustomTagParser<S>
impl<S> Send for NoopCustomTagParser<S>
impl<S> Sync for NoopCustomTagParser<S>
impl<S> Unpin for NoopCustomTagParser<S>
impl<S> UnwindSafe for NoopCustomTagParser<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more