#[repr(u8)]pub enum HeadingLevel {
One = 1,
Two = 2,
Three = 3,
Four = 4,
Five = 5,
Six = 6,
}Variants§
Trait Implementations§
Source§impl Clone for HeadingLevel
impl Clone for HeadingLevel
Source§fn clone(&self) -> HeadingLevel
fn clone(&self) -> HeadingLevel
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 HeadingLevel
impl Debug for HeadingLevel
Source§impl<'de> Deserialize<'de> for HeadingLevel
impl<'de> Deserialize<'de> for HeadingLevel
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 PartialEq for HeadingLevel
impl PartialEq for HeadingLevel
Source§impl Serialize for HeadingLevel
impl Serialize for HeadingLevel
Source§impl TryFrom<u8> for HeadingLevel
impl TryFrom<u8> for HeadingLevel
Source§type Error = TryFromPrimitiveError<HeadingLevel>
type Error = TryFromPrimitiveError<HeadingLevel>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for HeadingLevel
impl TryFromPrimitive for HeadingLevel
const NAME: &'static str = "HeadingLevel"
type Primitive = u8
type Error = TryFromPrimitiveError<HeadingLevel>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Eq for HeadingLevel
impl StructuralPartialEq for HeadingLevel
Auto Trait Implementations§
impl Freeze for HeadingLevel
impl RefUnwindSafe for HeadingLevel
impl Send for HeadingLevel
impl Sync for HeadingLevel
impl Unpin for HeadingLevel
impl UnwindSafe for HeadingLevel
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