pub enum Region {
Show 16 variants
H0,
H1,
H2,
H3,
H4,
H5,
H6,
H7,
Title,
MainContent,
Navigation,
Aside,
Footer,
Description,
Announce,
AnnounceUrgently,
}
Variants
H0
H1
H2
H3
H4
H5
H6
H7
Title
MainContent
Navigation
Aside
Footer
Description
Announce
AnnounceUrgently
Implementations
sourceimpl Region
impl Region
pub fn from(l: Option<String>, doc_id: &str) -> Result<Option<Region>>
pub fn is_heading(&self) -> bool
pub fn is_primary_heading(&self) -> bool
pub fn is_title(&self) -> bool
pub fn get_lower_priority_heading(&self) -> Vec<Region>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
sourcefn 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
sourceimpl PartialEq<Region> for Region
impl PartialEq<Region> for Region
impl StructuralPartialEq for Region
Auto Trait Implementations
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more