pub struct TextList { /* private fields */ }Expand description
A read-only handle to a list in the document.
Created via TextBlock::list().
Implementations§
Source§impl TextList
impl TextList
Sourcepub fn style(&self) -> ListStyle
pub fn style(&self) -> ListStyle
List style (Disc, Circle, Square, Decimal, LowerAlpha, etc.). O(1).
Sourcepub fn item(&self, index: usize) -> Option<TextBlock>
pub fn item(&self, index: usize) -> Option<TextBlock>
Block at the given 0-based index within this list. O(n).
Sourcepub fn item_marker(&self, index: usize) -> String
pub fn item_marker(&self, index: usize) -> String
Formatted marker for item at index. O(1) (after looking up list properties).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextList
impl !RefUnwindSafe for TextList
impl Send for TextList
impl Sync for TextList
impl Unpin for TextList
impl UnsafeUnpin for TextList
impl !UnwindSafe for TextList
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