pub enum Parents {
One(Name),
Any(Vec<Name>),
Set(Name),
}Expand description
Which counters a counter may be numbered within: one counter, any counter of a list, or any counter of a registered parent set.
This is the parents field of Within, which the constructors
Within::parent, Within::parents and Within::parent_set set.
Where there are several possible parents, the parent that applies at a
reference point is the one among them that was advanced most recently in
document order. For example, an equation numbered within any of the
sectioning counters is written 4.1 after a chapter and before the
chapter’s first section, and 4.1.2 once a section has begun in that
chapter.
Variants§
One(Name)
Numbered within this one counter.
Any(Vec<Name>)
Numbered within whichever of these counters was advanced most recently.
Set(Name)
Numbered within whichever counter of the parent set of this name was
advanced most recently. A name no feature registers fails the registry
build when a feature declares it, and is the Error
flm.numbering.unknown-parent-set when a document’s numbering options
give it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parents
impl<'de> Deserialize<'de> for Parents
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Parents
Source§impl JsonSchema for Parents
impl JsonSchema for Parents
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Parents
Auto Trait Implementations§
impl Forget for Parents
impl Freeze for Parents
impl Move for Parents
impl RefUnwindSafe for Parents
impl Send for Parents
impl Sync for Parents
impl Unpin for Parents
impl UnsafeUnpin for Parents
impl UnwindSafe for Parents
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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