pub enum ContainerType {
}
Variants§
Bold
Italics
Underline
Superscript
Subscript
Strikethrough
Monospace
Span
Div
Mark
Blockquote
Insertion
Deletion
Hidden
Invisible
Size
Ruby
RubyText
Paragraph
Align(Alignment)
Header(Heading)
Implementations§
Source§impl ContainerType
impl ContainerType
pub fn name(self) -> &'static str
pub fn html_tag( self, indexer: &mut dyn NextIndex<TableOfContentsIndex>, ) -> HtmlTag
Sourcepub fn paragraph_safe(self) -> bool
pub fn paragraph_safe(self) -> bool
Determines if this container type is able to be embedded in a paragraph.
See Element::paragraph_safe()
, as the same caveats apply.
Trait Implementations§
Source§impl Clone for ContainerType
impl Clone for ContainerType
Source§fn clone(&self) -> ContainerType
fn clone(&self) -> ContainerType
Returns a copy 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 ContainerType
impl Debug for ContainerType
Source§impl<'de> Deserialize<'de> for ContainerType
impl<'de> Deserialize<'de> for ContainerType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'_derivative_strum> From<&'_derivative_strum ContainerType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ContainerType> for &'static str
Source§fn from(x: &'_derivative_strum ContainerType) -> &'static str
fn from(x: &'_derivative_strum ContainerType) -> &'static str
Converts to this type from the input type.
Source§impl From<ContainerType> for &'static str
impl From<ContainerType> for &'static str
Source§fn from(x: ContainerType) -> &'static str
fn from(x: ContainerType) -> &'static str
Converts to this type from the input type.
Source§impl Hash for ContainerType
impl Hash for ContainerType
Source§impl PartialEq for ContainerType
impl PartialEq for ContainerType
Source§impl Serialize for ContainerType
impl Serialize for ContainerType
impl Copy for ContainerType
impl Eq for ContainerType
impl StructuralPartialEq for ContainerType
Auto Trait Implementations§
impl Freeze for ContainerType
impl RefUnwindSafe for ContainerType
impl Send for ContainerType
impl Sync for ContainerType
impl Unpin for ContainerType
impl UnwindSafe for ContainerType
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more