Enum sxpres::ElementNature
source · pub enum ElementNature {
Heading,
Subheading,
Text,
OrdList,
List,
Video,
Image,
Mermaid,
}
Expand description
Define the nature of the elements. This can help organize the way multiple elements will be arranged. The order of declaration matters since that organize() uses sort_by_key() method.
Variants§
Trait Implementations§
source§impl Clone for ElementNature
impl Clone for ElementNature
source§fn clone(&self) -> ElementNature
fn clone(&self) -> ElementNature
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 ElementNature
impl Debug for ElementNature
source§impl Display for ElementNature
impl Display for ElementNature
source§impl Ord for ElementNature
impl Ord for ElementNature
source§fn cmp(&self, other: &ElementNature) -> Ordering
fn cmp(&self, other: &ElementNature) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ElementNature
impl PartialEq for ElementNature
source§impl PartialOrd for ElementNature
impl PartialOrd for ElementNature
impl Eq for ElementNature
impl StructuralPartialEq for ElementNature
Auto Trait Implementations§
impl Freeze for ElementNature
impl RefUnwindSafe for ElementNature
impl Send for ElementNature
impl Sync for ElementNature
impl Unpin for ElementNature
impl UnwindSafe for ElementNature
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)