pub enum CounterStyle {
Decimal,
LowerRoman,
UpperRoman,
LowerAlpha,
UpperAlpha,
}Expand description
How a counter’s value is spelled.
Variants§
Implementations§
Source§impl CounterStyle
impl CounterStyle
Sourcepub const ALL: [CounterStyle; 5]
pub const ALL: [CounterStyle; 5]
Every style, in the order the subset lists them.
Sourcepub fn parse(keyword: &str) -> Option<CounterStyle>
pub fn parse(keyword: &str) -> Option<CounterStyle>
Parses one of the keywords, or None for a style outside the
subset.
Trait Implementations§
Source§impl Clone for CounterStyle
impl Clone for CounterStyle
Source§fn clone(&self) -> CounterStyle
fn clone(&self) -> CounterStyle
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 moreimpl Copy for CounterStyle
Source§impl Debug for CounterStyle
impl Debug for CounterStyle
impl Eq for CounterStyle
Source§impl Hash for CounterStyle
impl Hash for CounterStyle
Source§impl PartialEq for CounterStyle
impl PartialEq for CounterStyle
Source§impl Serialize for CounterStyle
impl Serialize for CounterStyle
impl StructuralPartialEq for CounterStyle
Auto Trait Implementations§
impl Freeze for CounterStyle
impl RefUnwindSafe for CounterStyle
impl Send for CounterStyle
impl Sync for CounterStyle
impl Unpin for CounterStyle
impl UnsafeUnpin for CounterStyle
impl UnwindSafe for CounterStyle
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.