pub struct LeftTag<CustomTy = ()> { /* private fields */ }Expand description
Left-align tag with no arguments, which converts to a div with styling to left-align it.
This matches the following BBCode tags: ["left"]
§Exact output
This tag converts exactly to
<div style="display: flex; justify-content: left;"><div>
contents
</div></div>Trait Implementations§
impl<CustomTy: Copy> Copy for LeftTag<CustomTy>
Auto Trait Implementations§
impl<CustomTy> Freeze for LeftTag<CustomTy>
impl<CustomTy> RefUnwindSafe for LeftTag<CustomTy>where
CustomTy: RefUnwindSafe,
impl<CustomTy> Send for LeftTag<CustomTy>where
CustomTy: Send,
impl<CustomTy> Sync for LeftTag<CustomTy>where
CustomTy: Sync,
impl<CustomTy> Unpin for LeftTag<CustomTy>where
CustomTy: Unpin,
impl<CustomTy> UnsafeUnpin for LeftTag<CustomTy>
impl<CustomTy> UnwindSafe for LeftTag<CustomTy>where
CustomTy: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, CustomTy> HtmlTagWriter<CustomTy> for Twhere
T: SimpleHtmlTagWriter<CustomTy>,
CustomTy: Clone + 'static,
impl<T, CustomTy> HtmlTagWriter<CustomTy> for Twhere
T: SimpleHtmlTagWriter<CustomTy>,
CustomTy: Clone + 'static,
Source§fn match_tag(&self, tag: &str) -> bool
fn match_tag(&self, tag: &str) -> bool
Whether or not this generator is the correct generator for the given tag. Read more
Source§fn open_tag(
&self,
tk_writer: &dyn HtmlTokenWriter<CustomTy>,
token: &Token<'_, CustomTy>,
out: &mut String,
)
fn open_tag( &self, tk_writer: &dyn HtmlTokenWriter<CustomTy>, token: &Token<'_, CustomTy>, out: &mut String, )
Produce an open tag for the given token, pushing it into the given buffer. Read more
Source§fn close_tag<'a>(
&self,
tk_writer: &dyn HtmlTokenWriter<CustomTy>,
_: &Token<'a, CustomTy>,
close_token: &Token<'a, CustomTy>,
out: &mut String,
)
fn close_tag<'a>( &self, tk_writer: &dyn HtmlTokenWriter<CustomTy>, _: &Token<'a, CustomTy>, close_token: &Token<'a, CustomTy>, out: &mut String, )
Produce a close tag for the given token, pushing it into the given buffer. Read more
Source§fn standalone_tag(
&self,
tk_writer: &dyn HtmlTokenWriter<CustomTy>,
token: &Token<'_, CustomTy>,
out: &mut String,
)
fn standalone_tag( &self, tk_writer: &dyn HtmlTokenWriter<CustomTy>, token: &Token<'_, CustomTy>, out: &mut String, )
Produce a standalone tag for the given token, pushing it into the given buffer. Read more
Source§fn try_special<'a>(
&self,
_token: &Token<'a, CustomTy>,
) -> Option<ParserRuleObjBox<'a, CustomTy>>
fn try_special<'a>( &self, _token: &Token<'a, CustomTy>, ) -> Option<ParserRuleObjBox<'a, CustomTy>>
Try to produce a new parser rule to introduce from the given token.