pub struct ListFormat {
pub style: Option<ListStyle>,
pub indent: Option<u8>,
pub prefix: Option<String>,
pub suffix: Option<String>,
}Expand description
List formatting. All fields are optional: None means
“not set, don’t change this property”, with one exception: a style that turns a bullet
list into a numbered one, or the reverse, replaces the prefix and suffix the caller
leaves None with those of the new kind (no prefix, and . or no suffix), because the
affixes of a numbered list (“1.” or “(1)”) do not belong on a bullet. A style that stays
in its kind (two numbered styles, two bullets) keeps them, and a prefix or suffix
that is given always wins.
Fields§
§style: Option<ListStyle>§indent: Option<u8>§prefix: Option<String>§suffix: Option<String>Trait Implementations§
Source§impl Clone for ListFormat
impl Clone for ListFormat
Source§impl Debug for ListFormat
impl Debug for ListFormat
Source§impl Default for ListFormat
impl Default for ListFormat
impl Eq for ListFormat
Source§impl PartialEq for ListFormat
impl PartialEq for ListFormat
impl StructuralPartialEq for ListFormat
Auto Trait Implementations§
impl Freeze for ListFormat
impl RefUnwindSafe for ListFormat
impl Send for ListFormat
impl Sync for ListFormat
impl Unpin for ListFormat
impl UnsafeUnpin for ListFormat
impl UnwindSafe for ListFormat
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,
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
Compare self to
key and return true if they are equal.