Struct tui_markup::generator::helper::NoopCustomTagParser
source · [−]pub struct NoopCustomTagParser<S>(_);Expand description
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>
sourceimpl<S: Default> Default for NoopCustomTagParser<S>
impl<S: Default> Default for NoopCustomTagParser<S>
sourcefn default() -> NoopCustomTagParser<S>
fn default() -> NoopCustomTagParser<S>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for NoopCustomTagParser<S> where
S: RefUnwindSafe,
impl<S> !Send for NoopCustomTagParser<S>
impl<S> !Sync for NoopCustomTagParser<S>
impl<S> Unpin for NoopCustomTagParser<S>
impl<S> UnwindSafe for NoopCustomTagParser<S> where
S: RefUnwindSafe,
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