pub struct OwnLabel<'t> {
pub template: String,
pub ref_template: String,
pub written: String,
pub pieces: Vec<WrittenPiece<'t>>,
}Expand description
The label template a list writes in its optional argument, as
list_options reads it.
Fields§
§template: StringThe template in the language of a counter style’s number template,
where every #{name} is the number in the number format name,
whether the author wrote it so (label=(#{alph})) or as a short form
((a), translated). Not compiled: this module does not depend on the
built language.
ref_template: StringThe reference template the label gives the list where it writes no
ref=: the same text as template for label=,
and for a short form that writes a number, the short form with every
full stop, colon and hyphen at its end dropped before it is
translated (short_form_ref) — [1.:] refers to its items as
#{arabic}, [(i)] as (#{roman}), [a-] as #{alph}.
written: StringWhat the author wrote: the short form, or the value of label=.
pieces: Vec<WrittenPiece<'t>>The label’s content, in order, as the bracket writes it: the nodes of
a short form ([-]), or the value of label= (braced or not, since
braces only delimit a value) as nodes of the document and text split
off a run of characters that also holds the key (label=*), with the
whitespace at either end dropped. The reference point of an untagged
item of an unnumbered list copies it into the content the point
carries, so that a reference to the item shows the label.
Trait Implementations§
Auto Trait Implementations§
impl<'t> !RefUnwindSafe for OwnLabel<'t>
impl<'t> !UnwindSafe for OwnLabel<'t>
impl<'t> Forget for OwnLabel<'t>
impl<'t> Freeze for OwnLabel<'t>
impl<'t> Move for OwnLabel<'t>
impl<'t> Send for OwnLabel<'t>
impl<'t> Sync for OwnLabel<'t>
impl<'t> Unpin for OwnLabel<'t>
impl<'t> UnsafeUnpin for OwnLabel<'t>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<WrittenPiece<'t>>: UnsafeUnpin,
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