pub struct Release { /* private fields */ }Expand description
An unpacked release, its files located by name at any depth.
Implementations§
Source§impl Release
impl Release
Sourcepub fn file(&self, name: &'static str) -> Result<PathBuf, RrfError>
pub fn file(&self, name: &'static str) -> Result<PathBuf, RrfError>
The path of the file name, compared without case.
§Errors
Returns RrfError::Missing when the release has no such file.
Sourcepub fn optional(&self, name: &str) -> Option<PathBuf>
pub fn optional(&self, name: &str) -> Option<PathBuf>
The path of the file name when the release has it.
Sourcepub fn version(&self) -> Option<String>
pub fn version(&self) -> Option<String>
The release date from a Readme_*_MMDDYYYY.txt in the release, else
from eight digits ending the directory name (RxNorm_full_09082026).
Sourcepub fn relationships(&self) -> Result<Rows<Relationship>, RrfError>
pub fn relationships(&self) -> Result<Rows<Relationship>, RrfError>
Sourcepub fn semantic_types(&self) -> Result<Option<Rows<SemanticType>>, RrfError>
pub fn semantic_types(&self) -> Result<Option<Rows<SemanticType>>, RrfError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Release
impl RefUnwindSafe for Release
impl Send for Release
impl Sync for Release
impl Unpin for Release
impl UnsafeUnpin for Release
impl UnwindSafe for Release
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