pub enum RegionRole {
BodyBlock,
StructuralHeading {
level: u8,
},
MarginalLabel,
Header,
Footer,
PageNumber,
Artifact,
}Expand description
The semantic role of a StructuredRegion.
Variants§
BodyBlock
Ordinary body text.
StructuralHeading
A document heading (ISO 32000-1 §14.7.2 H1..H6).
MarginalLabel
A short verse / section numeral sitting in a narrow column indent.
Header
Running header (§14.8.2.2 Pagination / Header).
Running footer (§14.8.2.2 Pagination / Footer).
PageNumber
Page-number folio (§14.8.2.2 Pagination / page number).
Artifact
Any other artifact (watermark, layout, background; §14.8.2.2).
Trait Implementations§
Source§impl Clone for RegionRole
impl Clone for RegionRole
Source§fn clone(&self) -> RegionRole
fn clone(&self) -> RegionRole
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 RegionRole
impl Debug for RegionRole
impl Eq for RegionRole
Source§impl PartialEq for RegionRole
impl PartialEq for RegionRole
Source§fn eq(&self, other: &RegionRole) -> bool
fn eq(&self, other: &RegionRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RegionRole
impl Serialize for RegionRole
impl StructuralPartialEq for RegionRole
Auto Trait Implementations§
impl Freeze for RegionRole
impl RefUnwindSafe for RegionRole
impl Send for RegionRole
impl Sync for RegionRole
impl Unpin for RegionRole
impl UnsafeUnpin for RegionRole
impl UnwindSafe for RegionRole
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.