pub enum WithinJoinerSpec {
Joined(String),
Template(String),
Bare,
Named(Name),
}Expand description
The form of a within-joiner, which writes a counter’s ancestors’ numbers
before the counter’s own number: one of the four forms a Within may
carry.
A form is data, not behavior: it can be compared, hashed, and carried in a
document’s numbering options. What a form writes is decided when it is
compiled, against the built language and against the within-joiners the
registry holds (Within::compile).
Variants§
Joined(String)
The parent’s number, then this joining text, which is FLM: what
Within::parent and Within::joined_by make. A subsection joined
by . is written 1.2.
The parent is written with its own ancestors before it, each as a part
of its own, so a chain three counters deep is written 1.2.3 with
every counter declaring only its joining text.
Template(String)
A within template, in the language that Within::template
describes.
Bare
Nothing of the ancestors is written: the counter restarts under its
parent, and its number is shown bare, that is, without its
parents’ numbers. What Within::displayed_bare makes.
Named(Name)
The within-joiner registered under this name in
WITHIN_JOINERS_SLOT, which writes what its code writes. A name no
feature registers is refused: in a feature’s declaration it fails the
registry build, and in a document’s numbering options it is the Error
flm.numbering.unknown-within-joiner, and the counter keeps the
hierarchy it was declared with.
Trait Implementations§
Source§impl Clone for WithinJoinerSpec
impl Clone for WithinJoinerSpec
Source§impl Debug for WithinJoinerSpec
impl Debug for WithinJoinerSpec
Source§impl<'de> Deserialize<'de> for WithinJoinerSpec
impl<'de> Deserialize<'de> for WithinJoinerSpec
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 WithinJoinerSpec
Source§impl Hash for WithinJoinerSpec
impl Hash for WithinJoinerSpec
Source§impl JsonSchema for WithinJoinerSpec
impl JsonSchema for WithinJoinerSpec
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 moreSource§impl PartialEq for WithinJoinerSpec
impl PartialEq for WithinJoinerSpec
Source§impl Serialize for WithinJoinerSpec
impl Serialize for WithinJoinerSpec
impl StructuralPartialEq for WithinJoinerSpec
Auto Trait Implementations§
impl Forget for WithinJoinerSpec
impl Freeze for WithinJoinerSpec
impl Move for WithinJoinerSpec
impl RefUnwindSafe for WithinJoinerSpec
impl Send for WithinJoinerSpec
impl Sync for WithinJoinerSpec
impl Unpin for WithinJoinerSpec
impl UnsafeUnpin for WithinJoinerSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
impl UnwindSafe for WithinJoinerSpec
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