pub enum ParsedElementType {
Section,
Paragraph,
List,
ListItem,
Header,
Footer,
Margin,
}Variants§
Implementations§
Source§impl ParsedElementType
impl ParsedElementType
Sourcepub fn from_region_label(label: Option<&str>) -> ParsedElementType
pub fn from_region_label(label: Option<&str>) -> ParsedElementType
Initial element type derived from a region label produced by
analytics::reading_order::tag_and_resort.
Some("H-*")→Header(running header element)Some("F-*")→Footer(running footer element)None→Margin(orphan: sidebar / rotated / out-of-region content)- any other label (body leaf path like
"1","2-1","2-4-1") →Paragraph
Trait Implementations§
Source§impl Clone for ParsedElementType
impl Clone for ParsedElementType
Source§fn clone(&self) -> ParsedElementType
fn clone(&self) -> ParsedElementType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedElementType
impl Debug for ParsedElementType
Source§impl<'de> Deserialize<'de> for ParsedElementType
impl<'de> Deserialize<'de> for ParsedElementType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParsedElementType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParsedElementType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ParsedElementType
Source§impl Hash for ParsedElementType
impl Hash for ParsedElementType
Source§impl PartialEq for ParsedElementType
impl PartialEq for ParsedElementType
Source§impl Serialize for ParsedElementType
impl Serialize for ParsedElementType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ParsedElementType
Auto Trait Implementations§
impl Freeze for ParsedElementType
impl RefUnwindSafe for ParsedElementType
impl Send for ParsedElementType
impl Sync for ParsedElementType
impl Unpin for ParsedElementType
impl UnsafeUnpin for ParsedElementType
impl UnwindSafe for ParsedElementType
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.