pub enum ListStyleType {
None,
Disc,
Circle,
Square,
Counter(CounterStyle),
}Expand description
The marker a list item is set with, from list-style-type.
Variants§
None
none: the item has no marker.
Disc
disc: a filled circle.
Circle
circle: an open circle.
Square
square: a filled square.
Counter(CounterStyle)
The item’s number, spelled as the style names.
Implementations§
Source§impl ListStyleType
impl ListStyleType
Sourcepub fn marker(self, number: u32) -> Option<String>
pub fn marker(self, number: u32) -> Option<String>
The marker of the item numbered number, and the space after
it, as CSS writes a marker. Nothing for none.
Trait Implementations§
Source§impl Clone for ListStyleType
impl Clone for ListStyleType
Source§fn clone(&self) -> ListStyleType
fn clone(&self) -> ListStyleType
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 ListStyleType
Source§impl Debug for ListStyleType
impl Debug for ListStyleType
impl Eq for ListStyleType
Source§impl Hash for ListStyleType
impl Hash for ListStyleType
Source§impl PartialEq for ListStyleType
impl PartialEq for ListStyleType
Source§impl Serialize for ListStyleType
impl Serialize 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 UnsafeUnpin 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
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.