Enum ftml::tree::ContainerType
source · 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§fn eq(&self, other: &ContainerType) -> bool
fn eq(&self, other: &ContainerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContainerType
impl Serialize for ContainerType
impl Copy for ContainerType
impl Eq for ContainerType
impl StructuralEq for ContainerType
impl StructuralPartialEq for ContainerType
Auto Trait Implementations§
impl RefUnwindSafe for ContainerType
impl Send for ContainerType
impl Sync for ContainerType
impl Unpin for ContainerType
impl UnwindSafe for ContainerType
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more