pub struct ListOptions<'t> {
pub label: Option<OwnLabel<'t>>,
pub ref_label: Option<String>,
/* private fields */
}Expand description
What a list’s optional argument gives: the list’s own label template and
its own reference template, where it writes them in a way that can be
read. Returned by list_options.
Fields§
§label: Option<OwnLabel<'t>>The list’s own label template, None where the argument is absent,
holds nothing but whitespace (~ and \ included) and comments, or
writes none that can be read.
ref_label: Option<String>The reference template the argument writes with ref=, as written,
in the language of a counter style’s number template (one enclosing
pair of braces taken off, the text trimmed); not compiled. None
where no ref= is written.
Implementations§
Source§impl ListOptions<'_>
impl ListOptions<'_>
Sourcepub fn ref_template(&self) -> Option<&str>
pub fn ref_template(&self) -> Option<&str>
The list’s own reference template: its ref= where written, else the
one its label gives (OwnLabel::ref_template), else None. A
reference to an untagged item of a numbered list writes the item’s
number through it.
Trait Implementations§
Source§impl<'t> Clone for ListOptions<'t>
impl<'t> Clone for ListOptions<'t>
Source§impl<'t> Debug for ListOptions<'t>
impl<'t> Debug for ListOptions<'t>
Auto Trait Implementations§
impl<'t> !RefUnwindSafe for ListOptions<'t>
impl<'t> !UnwindSafe for ListOptions<'t>
impl<'t> Forget for ListOptions<'t>
impl<'t> Freeze for ListOptions<'t>where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<WrittenPiece<'t>>: Freeze,
PhantomData<OptionProblem>: Freeze,
impl<'t> Move for ListOptions<'t>
impl<'t> Send for ListOptions<'t>
impl<'t> Sync for ListOptions<'t>
impl<'t> Unpin for ListOptions<'t>
impl<'t> UnsafeUnpin for ListOptions<'t>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<WrittenPiece<'t>>: UnsafeUnpin,
PhantomData<OptionProblem>: 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