pub struct EditionInclusion {
pub encoding_id: Id,
pub since: EditionId,
pub required_vortex_release: Option<&'static str>,
}Expand description
Declares that an encoding is a member of an edition — and of every later edition of the
same family. Registered with EditionSession::declare_inclusion.
Fields§
§encoding_id: IdThe interned encoding id, e.g. vortex.alp. Globally unique across everything an
edition can cover: when layout encodings join editions, their ids must be distinct
from array encoding ids.
since: EditionIdThe first edition this encoding is a member of.
required_vortex_release: Option<&'static str>The earliest Vortex release able to read and execute this encoding, recorded from
evidence (e.g. compat-fixture history). None until recorded.
Implementations§
Source§impl EditionInclusion
impl EditionInclusion
Sourcepub fn new<E: AsEncodingId + ?Sized>(encoding: &E, since: EditionId) -> Self
pub fn new<E: AsEncodingId + ?Sized>(encoding: &E, since: EditionId) -> Self
Declare that an encoding is a member of since and every later edition of the same
family. The encoding can be named by id string or by vtable.
Sourcepub fn validate(&self) -> Result<(), EditionError>
pub fn validate(&self) -> Result<(), EditionError>
Validate the declaration’s form: a lowercase namespace.name encoding id and, if
recorded, a well-formed major.minor.patch release. Checked for every declared
inclusion by EditionSession::validate.
Trait Implementations§
Source§impl Clone for EditionInclusion
impl Clone for EditionInclusion
Source§fn clone(&self) -> EditionInclusion
fn clone(&self) -> EditionInclusion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more