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§fn clone(&self) -> CounterStyleDef
fn clone(&self) -> CounterStyleDef
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 moreAuto 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