pub struct KeyMark {
pub path: String,
pub marks: Vec<Mark>,
}Expand description
The marks (Mark) that a declaration sets on one of its settings, or on
a value at any depth below one.
A declaration written in Rust sets marks with
SettingsDecl::merge_entries, SettingsDecl::remove_false,
SettingsDecl::default_on_null, SettingsDecl::markup and
SettingsDecl::path; a part declared from data writes them on the nodes
of its schema. A host reads them with SettingsDecl::marks and
SettingsDecl::mark_at, and the JSON Schema writes each on its node
(SettingsDecl::json_schema).
The marked value is identified by its path below the feature’s name, its
segments joined by .. The segment * means every entry of a map and every
item of a list (kinds.*.words, a key of the theorems feature, marks the
words of every theorem kind, labels.*
every item of the list labels); a variant of an enumeration written as a
map of one key is a segment of its own (nesting.template). In the schema,
a property K of an object is the segment K, additionalProperties and
items are the segment *, and the alternatives of a node (anyOf,
oneOf, allOf) and the definition its $ref names in the schema’s own
$defs are at the node’s path. A path that reaches no node of the
declaration’s schema is a mistake of the declaration.
A mark on a value that holds several texts (a list, a map, a structure) says
what every text inside it is: environments.*.labels (the lists feature)
marks every label template of every list environment, and styles.*.join
(the numbering feature) every text of each counter style’s join. A
value that holds texts of different kinds is not marked as a whole; the
values below it are marked one by one.
Fields§
§path: StringThe path of the marked value below the feature’s name, its segments
separated by ., with * meaning every entry of a map and every item of
a list.
marks: Vec<Mark>The marks of the value, each once, in the order of Mark::ALL.
Implementations§
Trait Implementations§
impl Eq for KeyMark
impl StructuralPartialEq for KeyMark
Auto Trait Implementations§
impl Forget for KeyMark
impl Freeze for KeyMark
impl Move for KeyMark
impl RefUnwindSafe for KeyMark
impl Send for KeyMark
impl Sync for KeyMark
impl Unpin for KeyMark
impl UnsafeUnpin for KeyMark
impl UnwindSafe for KeyMark
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<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