pub struct TagInfo {
pub tag: &'static str,
pub outtag: &'static str,
pub tag_type: TagType,
pub rawextra: Option<&'static str>,
pub valparse: TagValueParse,
pub blankconsume: BlankConsume,
}Expand description
A structure to build a bbbcode tag. Nearly all bbcode tags should work through this configuration, but you may find some are too complex (for now)
Fields§
§tag: &'static strThe tag identity, such as “b”, “youtube”, etc
outtag: &'static str§tag_type: TagType§rawextra: Option<&'static str>§valparse: TagValueParse§blankconsume: BlankConsumeImplementations§
source§impl TagInfo
impl TagInfo
sourcepub fn simple(tag: &'static str) -> TagInfo
pub fn simple(tag: &'static str) -> TagInfo
Constructors for basic tags. Anything else, you’re better off just constructing it normally
sourcepub fn is_verbatim(&self) -> bool
pub fn is_verbatim(&self) -> bool
Does this tag allow other tags inside, or none? Some tag types automatically require no other tags inside, while others can manually set themselves to verbatim