pub struct DbdFile {
pub name: String,
pub definitions: Vec<Definition>,
}
Expand description
Parsed and validated file.
Created from RawDbdFile::into_proper
.
Fields§
§name: String
Name of the dbd
file, including .dbd
.
Can not be assumed to always be correct since load_file_from_string
can provide an invalid name.
definitions: Vec<Definition>
Parsed and validated definitions.
Implementations§
Source§impl DbdFile
impl DbdFile
Sourcepub fn specific_version(&self, version: &Version) -> Option<&Definition>
pub fn specific_version(&self, version: &Version) -> Option<&Definition>
Finds the definition for a specific version, if it exists.
Trait Implementations§
Source§impl Ord for DbdFile
impl Ord for DbdFile
Source§impl PartialOrd for DbdFile
impl PartialOrd for DbdFile
impl Eq for DbdFile
impl StructuralPartialEq for DbdFile
Auto Trait Implementations§
impl Freeze for DbdFile
impl RefUnwindSafe for DbdFile
impl Send for DbdFile
impl Sync for DbdFile
impl Unpin for DbdFile
impl UnwindSafe for DbdFile
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