pub struct Definition {
pub versions: BTreeSet<Version>,
pub version_ranges: Vec<VersionRange>,
pub layouts: BTreeSet<Layout>,
pub entries: Vec<Entry>,
}
Expand description
Parsed and validated definition.
Created from RawDefinition::to_definition
and RawDbdFile::into_proper
.
Fields§
§versions: BTreeSet<Version>
Specific valid versions.
version_ranges: Vec<VersionRange>
Valid version ranges.
layouts: BTreeSet<Layout>
Specific valid layouts.
entries: Vec<Entry>
Entries in the definition.
Trait Implementations§
Source§impl Clone for Definition
impl Clone for Definition
Source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Definition
impl Debug for Definition
Source§impl Default for Definition
impl Default for Definition
Source§fn default() -> Definition
fn default() -> Definition
Returns the “default value” for a type. Read more
Source§impl Hash for Definition
impl Hash for Definition
Source§impl Ord for Definition
impl Ord for Definition
Source§fn cmp(&self, other: &Definition) -> Ordering
fn cmp(&self, other: &Definition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Definition
impl PartialEq for Definition
Source§impl PartialOrd for Definition
impl PartialOrd for Definition
impl Eq for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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
Mutably borrows from an owned value. Read more