pub struct ListBody<'t> {
pub depth: usize,
pub own_label: Option<OwnLabel<'t>>,
pub own_ref: Option<String>,
pub kind_label: Option<String>,
pub before: Vec<NodeRef<'t, Flm>>,
pub items: Vec<ListItem<'t>>,
}Expand description
A list’s body as list_items reads it, with the label templates that
apply to its items.
Fields§
§depth: usizeThe list’s nesting depth: the number of lists of the same list kind that contain it, itself included; 1 for a list inside no list of its list kind. It selects the list kind’s label template and, for a numbered list kind, the counter style.
own_label: Option<OwnLabel<'t>>The list’s own label template, where its optional argument writes one
that can be read (list_options). Not yet compiled.
own_ref: Option<String>The list’s own reference template, where its optional argument writes
one: its ref=, else the one its own label gives
(ListOptions::ref_template).
Only a numbered list uses it.
kind_label: Option<String>The label template the list’s list kind declares for
depth; None for a list kind that declares none, such
as description.
before: Vec<NodeRef<'t, Flm>>The content written before the first \item, all of it. Empty unless
that content holds something other than whitespace and comments,
which is an error
(ContentBeforeItem).
items: Vec<ListItem<'t>>The items, in order.
Trait Implementations§
Auto Trait Implementations§
impl<'t> !RefUnwindSafe for ListBody<'t>
impl<'t> !UnwindSafe for ListBody<'t>
impl<'t> Forget for ListBody<'t>
impl<'t> Freeze for ListBody<'t>
impl<'t> Move for ListBody<'t>
impl<'t> Send for ListBody<'t>
impl<'t> Sync for ListBody<'t>
impl<'t> Unpin for ListBody<'t>
impl<'t> UnsafeUnpin for ListBody<'t>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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