pub enum ListStyleType {
Show 34 variants
Disc,
None,
Circle,
Square,
DisclosureOpen,
DisclosureClosed,
Decimal,
LowerAlpha,
UpperAlpha,
ArabicIndic,
Bengali,
Cambodian,
CjkDecimal,
Devanagari,
Gujarati,
Gurmukhi,
Kannada,
Khmer,
Lao,
Malayalam,
Mongolian,
Myanmar,
Oriya,
Persian,
Telugu,
Thai,
Tibetan,
CjkEarthlyBranch,
CjkHeavenlyStem,
LowerGreek,
Hiragana,
HiraganaIroha,
Katakana,
KatakanaIroha,
}Expand description
Specified and computed list-style-type property.
Variants§
Disc
A filled circle, similar to • U+2022 BULLET. https://www.w3.org/TR/css-counter-styles-3/#disc
None
The element has no marker string. https://www.w3.org/TR/css-lists-3/#valdef-list-style-type-none
Circle
A hollow circle, similar to ◦ U+25E6 WHITE BULLET. https://www.w3.org/TR/css-counter-styles-3/#circle
Square
A filled square, similar to ▪ U+25AA BLACK SMALL SQUARE. https://www.w3.org/TR/css-counter-styles-3/#square
DisclosureOpen
Symbol for indicating an open disclosure widget, such as the HTML <details> element.
https://www.w3.org/TR/css-counter-styles-3/#disclosure-open
DisclosureClosed
Symbol for indicating a closed disclosure widget, such as the HTML <details> element.
https://www.w3.org/TR/css-counter-styles-3/#disclosure-closed
Decimal
Western decimal numbers (e.g., 1, 2, 3, …, 98, 99, 100). https://www.w3.org/TR/css-counter-styles-3/#decimal
LowerAlpha
Lowercase ASCII letters (e.g., a, b, c, …, z, aa, ab). https://www.w3.org/TR/css-counter-styles-3/#lower-alpha
UpperAlpha
Uppercase ASCII letters (e.g., A, B, C, …, Z, AA, AB). https://www.w3.org/TR/css-counter-styles-3/#upper-alpha
ArabicIndic
Arabic-indic numbering (e.g.، ١، ٢، ٣، ٤، …، ٩٨، ٩٩، ١٠٠). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-arabic-indic
Bengali
Bengali numbering (e.g., ১, ২, ৩, …, ৯৮, ৯৯, ১০০). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-bengali
Cambodian
Cambodian/Khmer numbering (e.g., ១, ២, ៣, …, ៩៨, ៩៩, ១០០). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-cambodian
CjkDecimal
Han decimal numbers (e.g., 一, 二, 三, …, 九八, 九九, 一〇〇). https://www.w3.org/TR/css-counter-styles-3/#cjk-decimal
Devanagari
devanagari numbering (e.g., १, २, ३, …, ९८, ९९, १००). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-devanagari
Gujarati
Gujarati numbering (e.g., ૧, ૨, ૩, …, ૯૮, ૯૯, ૧૦૦). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-gujarati
Gurmukhi
Gurmukhi numbering (e.g., ੧, ੨, ੩, …, ੯੮, ੯੯, ੧੦੦). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-gurmukhi
Kannada
Kannada numbering (e.g., ೧, ೨, ೩, …, ೯೮, ೯೯, ೧೦೦). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-kannada
Khmer
Cambodian/Khmer numbering (e.g., ១, ២, ៣, …, ៩៨, ៩៩, ១០០). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-khmer
Lao
Laotian numbering (e.g., ໑, ໒, ໓, …, ໙໘, ໙໙, ໑໐໐). <https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-lao<
Malayalam
Malayalam numbering (e.g., ൧, ൨, ൩, …, ൯൮, ൯൯, ൧൦൦). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-malayalam
Mongolian
Mongolian numbering (e.g., ᠑, ᠒, ᠓, …, ᠙᠘, ᠙᠙, ᠑᠐᠐). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-mongolian
Myanmar
Myanmar (Burmese) numbering (e.g., ၁, ၂, ၃, …, ၉၈, ၉၉, ၁၀၀). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-myanmar
Oriya
Oriya numbering (e.g., ୧, ୨, ୩, …, ୯୮, ୯୯, ୧୦୦). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-oriya
Persian
Persian numbering (e.g., ۱, ۲, ۳, ۴, …, ۹۸, ۹۹, ۱۰۰). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-persian
Telugu
Telugu numbering (e.g., ౧, ౨, ౩, …, ౯౮, ౯౯, ౧౦౦). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-telugu
Thai
Thai (Siamese) numbering (e.g., ๑, ๒, ๓, …, ๙๘, ๙๙, ๑๐๐). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-thai
Tibetan
Tibetan numbering (e.g., ༡, ༢, ༣, …, ༩༨, ༩༩, ༡༠༠). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-tibetan
CjkEarthlyBranch
Han “Earthly Branch” ordinals (e.g., 子, 丑, 寅, …, 亥). https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-cjk-earthly-branch
CjkHeavenlyStem
Han “Heavenly Stem” ordinals (e.g., 甲, 乙, 丙, …, 癸) https://www.w3.org/TR/css-counter-styles-3/#valdef-counter-style-name-cjk-heavenly-stem
LowerGreek
Lowercase classical Greek (e.g., α, β, γ, …, ω, αα, αβ). https://www.w3.org/TR/css-counter-styles-3/#lower-greek
Hiragana
Dictionary-order hiragana lettering (e.g., あ, い, う, …, ん, ああ, あい). https://www.w3.org/TR/css-counter-styles-3/#hiragana
HiraganaIroha
Iroha-order hiragana lettering (e.g., い, ろ, は, …, す, いい, いろ). https://www.w3.org/TR/css-counter-styles-3/#hiragana-iroha
Katakana
Dictionary-order katakana lettering (e.g., ア, イ, ウ, …, ン, アア, アイ). https://www.w3.org/TR/css-counter-styles-3/#katakana
KatakanaIroha
Iroha-order katakana lettering (e.g., イ, ロ, ハ, …, ス, イイ, イロ) https://www.w3.org/TR/css-counter-styles-3/#katakana-iroha
Implementations§
Source§impl ListStyleType
impl ListStyleType
Sourcepub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>
pub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>
Parse this keyword.
Sourcepub fn from_ident(ident: &str) -> Result<Self, ()>
pub fn from_ident(ident: &str) -> Result<Self, ()>
Parse this keyword from a string slice.
Trait Implementations§
Source§impl Clone for ListStyleType
impl Clone for ListStyleType
Source§fn clone(&self) -> ListStyleType
fn clone(&self) -> ListStyleType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListStyleType
impl Debug for ListStyleType
Source§impl MallocSizeOf for ListStyleType
impl MallocSizeOf for ListStyleType
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Source§impl Parse for ListStyleType
impl Parse for ListStyleType
Source§fn parse<'i, 't>(
_: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( _: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Source§impl PartialEq for ListStyleType
impl PartialEq for ListStyleType
Source§impl SpecifiedValueInfo for ListStyleType
impl SpecifiedValueInfo for ListStyleType
Source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Source§impl ToComputedValue for ListStyleType
impl ToComputedValue for ListStyleType
Source§type ComputedValue = ListStyleType
type ComputedValue = ListStyleType
Source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Context.Source§impl ToCss for ListStyleType
impl ToCss for ListStyleType
Source§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
self in CSS syntax and return a CssString. Read moreSource§impl ToResolvedValue for ListStyleType
impl ToResolvedValue for ListStyleType
Source§type ResolvedValue = ListStyleType
type ResolvedValue = ListStyleType
Source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Source§impl ToShmem for ListStyleType
impl ToShmem for ListStyleType
Source§impl ToTyped for ListStyleType
impl ToTyped for ListStyleType
Source§fn to_typed(&self) -> Option<TypedValue>
fn to_typed(&self) -> Option<TypedValue>
impl Eq for ListStyleType
impl StructuralPartialEq for ListStyleType
Auto Trait Implementations§
impl Freeze for ListStyleType
impl RefUnwindSafe for ListStyleType
impl Send for ListStyleType
impl Sync for ListStyleType
impl Unpin for ListStyleType
impl UnwindSafe for ListStyleType
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
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
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>
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>
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 more