pub enum Mark {
MergeObjectKeyValues,
RemoveKeyWhenValueIsFalse,
SetToDefaultWithNull,
Path,
Markup,
}Expand description
A mark that a declaration sets on one of its settings, or on a value at any depth below one: how sources of settings combine the value, or what the value means.
A mark is written on the node of the JSON Schema that it concerns, under
MARKS_KEYWORD (x-flm-marks), as its name (Mark::name); see
KeyMark for the path of the node.
Variants§
MergeObjectKeyValues
merge-object-key-values, on an object: sources of settings are
combined key by key. The default of the object’s node is its default
entries (SettingsDecl::default_entries).
RemoveKeyWhenValueIsFalse
remove-key-when-value-is-false, on an object: a key whose value is
false is removed.
SetToDefaultWithNull
set-to-default-with-null, on one setting: a value of null gives the
setting its default.
Path
path, on a text or on a value that holds texts: each text is the path
of a file. The origin of the value gives each such text the form its
reader receives (CascadeOrigin::resolve_path).
Markup
markup, on a text or on a value that holds texts: each text is
written in FLM markup, which the feature parses.
Implementations§
Trait Implementations§
impl Copy for Mark
impl Eq for Mark
Source§impl Ord for Mark
impl Ord for Mark
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Mark
impl PartialOrd for Mark
impl StructuralPartialEq for Mark
Auto Trait Implementations§
impl Forget for Mark
impl Freeze for Mark
impl Move for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnsafeUnpin for Mark
impl UnwindSafe for Mark
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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