pub struct EditionFamily {
pub name: &'static str,
pub origin: &'static str,
pub doc: &'static str,
}Expand description
A family of editions: an independently versioned, additive group of members, registered
with EditionSession::declare_family.
Every EditionId names one. Declaring the family is what makes the name real:
EditionSession::validate rejects an edition whose family was never declared, so a typo
cannot quietly mint a family of one.
Fields§
§name: &'static strThe family name, matching the EditionId::family of its editions, e.g. core.
origin: &'static strThe library or project whose releases provide readers for this family’s editions.
Edition::min_library_version refers to versions of this origin.
doc: &'static strWhat the family is for. Exported into the family’s record, so a few sentences at most: the long form belongs in the published spec.
Implementations§
Source§impl EditionFamily
impl EditionFamily
Sourcepub fn validate(&self) -> VortexResult<()>
pub fn validate(&self) -> VortexResult<()>
Validate the family’s form: a non-empty lowercase name, origin, and doc. Checked for every
declared family by EditionSession::validate.
Trait Implementations§
Source§impl Clone for EditionFamily
impl Clone for EditionFamily
Source§fn clone(&self) -> EditionFamily
fn clone(&self) -> EditionFamily
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more