Skip to main content

ItalicTag

Struct ItalicTag 

Source
pub struct ItalicTag<CustomTy = ()> { /* private fields */ }
Expand description

An italic tag with no arguments, which converts directly to HTML5 <i>.
This matches the following BBCode tags: ["i", "italic"]

§Exact output

This tag converts exactly to

<i>
 contents
</i>

Trait Implementations§

Source§

impl<CustomTy: Clone> Clone for ItalicTag<CustomTy>

Source§

fn clone(&self) -> ItalicTag<CustomTy>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<CustomTy: Copy> Copy for ItalicTag<CustomTy>

Source§

impl<CustomTy: Debug> Debug for ItalicTag<CustomTy>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<CustomTy: Default> Default for ItalicTag<CustomTy>

Source§

fn default() -> ItalicTag<CustomTy>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<CustomTy> Freeze for ItalicTag<CustomTy>

§

impl<CustomTy> RefUnwindSafe for ItalicTag<CustomTy>
where CustomTy: RefUnwindSafe,

§

impl<CustomTy> Send for ItalicTag<CustomTy>
where CustomTy: Send,

§

impl<CustomTy> Sync for ItalicTag<CustomTy>
where CustomTy: Sync,

§

impl<CustomTy> Unpin for ItalicTag<CustomTy>
where CustomTy: Unpin,

§

impl<CustomTy> UnsafeUnpin for ItalicTag<CustomTy>

§

impl<CustomTy> UnwindSafe for ItalicTag<CustomTy>
where CustomTy: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, CustomTy> HtmlTagWriter<CustomTy> for T
where T: SimpleHtmlTagWriter<CustomTy>, CustomTy: Clone + 'static,

Source§

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, )

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, )

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, )

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>>

Try to produce a new parser rule to introduce from the given token.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.