pub enum UnknownTagBehavior {
Passthrough,
Strip,
}Expand description
How to handle tags not found in the styles map.
Variants§
Passthrough
Keep unknown tags as literal text with a ? marker.
[foo]text[/foo] → [foo?]text[/foo?]
This makes unknown tags visible without breaking output.
Strip
Strip unknown tags entirely, keeping only inner content.
[foo]text[/foo] → text
Use this for graceful degradation in production.
Trait Implementations§
Source§impl Clone for UnknownTagBehavior
impl Clone for UnknownTagBehavior
Source§fn clone(&self) -> UnknownTagBehavior
fn clone(&self) -> UnknownTagBehavior
Returns a duplicate 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 Debug for UnknownTagBehavior
impl Debug for UnknownTagBehavior
Source§impl Default for UnknownTagBehavior
impl Default for UnknownTagBehavior
Source§fn default() -> UnknownTagBehavior
fn default() -> UnknownTagBehavior
Returns the “default value” for a type. Read more
Source§impl PartialEq for UnknownTagBehavior
impl PartialEq for UnknownTagBehavior
impl Copy for UnknownTagBehavior
impl Eq for UnknownTagBehavior
impl StructuralPartialEq for UnknownTagBehavior
Auto Trait Implementations§
impl Freeze for UnknownTagBehavior
impl RefUnwindSafe for UnknownTagBehavior
impl Send for UnknownTagBehavior
impl Sync for UnknownTagBehavior
impl Unpin for UnknownTagBehavior
impl UnwindSafe for UnknownTagBehavior
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