pub struct EntryDecl { /* private fields */ }Expand description
The declaration of one entry of a map that a key of another feature holds:
the schema of that entry, which a feature gives in its own settings
declaration (SettingsDecl::entry_data).
The feature that holds the key, the owner, states in its declaration the
places where other features declare entries
(SettingsDecl::open_entries); an entry is declared at one place that
such a path names, by its concrete path below the owner’s name (each *
replaced by the entry’s name). A declaration of an entry is in force when
its feature and the owner are among the features of the packages in use and
neither is switched off; the cascade then combines the owner’s
declaration with it (SettingsDecl::with_entries):
- the marks of the entry’s schema apply to the values written under the entry, as the owner’s own marks do;
- a key written under the entry that the schema’s
propertieslack is left out of the combined settings, with a warning at its origin; - the owner’s JSON Schema (
SettingsDecl::json_schema) holds the entry’s schema at its place.
The values written under the entry are not checked against the types of the schema, as for any part declared from data.
Implementations§
Source§impl EntryDecl
impl EntryDecl
Sourcepub fn owner(&self) -> &FeatureName
pub fn owner(&self) -> &FeatureName
The name of the feature that holds the key the entry belongs to.
Sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
The entry’s path below the owner’s name, its segments joined by .
(template_config.html.base).
Trait Implementations§
impl StructuralPartialEq for EntryDecl
Auto Trait Implementations§
impl Forget for EntryDecl
impl Freeze for EntryDecl
impl Move for EntryDecl
impl RefUnwindSafe for EntryDecl
impl Send for EntryDecl
impl Sync for EntryDecl
impl Unpin for EntryDecl
impl UnsafeUnpin for EntryDecl
impl UnwindSafe for EntryDecl
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