pub struct CounterStyleDef {
pub name: String,
pub system: String,
pub symbols: Vec<String>,
pub suffix: String,
}Expand description
@counter-style の簡略実装。system/symbols/suffix のみ対応
(negative/range/pad/fallback/prefix等は非対応で無視する)。
system は cyclic(既定。(value-1) % symbols.len() で循環)と
numeric(symbols を桁の数字として使う位取り記数法。0除く正の整数のみ)に対応、
それ以外(alphabetic/additive等)は cyclic と同一視する。
Fields§
§name: String§system: String§symbols: Vec<String>§suffix: StringTrait Implementations§
Source§impl Clone for CounterStyleDef
impl Clone for CounterStyleDef
Source§impl Debug for CounterStyleDef
impl Debug for CounterStyleDef
impl Eq for CounterStyleDef
Source§impl PartialEq for CounterStyleDef
impl PartialEq for CounterStyleDef
impl StructuralPartialEq for CounterStyleDef
Auto Trait Implementations§
impl Freeze for CounterStyleDef
impl RefUnwindSafe for CounterStyleDef
impl Send for CounterStyleDef
impl Sync for CounterStyleDef
impl Unpin for CounterStyleDef
impl UnsafeUnpin for CounterStyleDef
impl UnwindSafe for CounterStyleDef
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.