pub struct HrlFile {
pub path: RelativePath,
pub app: Option<ApplicationName>,
pub includes: Vec<HeaderRef>,
pub types: Vec<TypeDecl>,
pub opaques: Vec<TypeArity>,
pub records: Vec<RecordDecl>,
pub defines: Vec<MacroDecl>,
}Fields§
§path: RelativePath§app: Option<ApplicationName>Application the header belongs to. None before format version 5.
includes: Vec<HeaderRef>The header’s own -include and -include_lib lines. Format
version 5 and later.
types: Vec<TypeDecl>§opaques: Vec<TypeArity>§records: Vec<RecordDecl>§defines: Vec<MacroDecl>Macros the header defines outside -ifdef(TEST). Format version 5
and later.
Implementations§
Source§impl HrlFile
impl HrlFile
pub fn new(path: RelativePath) -> Self
Sourcepub fn app_path(&self) -> Option<RelativePath>
pub fn app_path(&self) -> Option<RelativePath>
The part of path after the app root, which is the directory named
like the app: deps/rabbit_common/include/rabbit.hrl in
rabbit_common is include/rabbit.hrl. A path with no such
directory is already relative to the app. None without an app.
pub fn header_ref(&self) -> Option<HeaderRef>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HrlFile
impl<'de> Deserialize<'de> for HrlFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HrlFile
impl StructuralPartialEq for HrlFile
Auto Trait Implementations§
impl Forget for HrlFile
impl Freeze for HrlFile
impl Move for HrlFile
impl RefUnwindSafe for HrlFile
impl Send for HrlFile
impl Sync for HrlFile
impl Unpin for HrlFile
impl UnsafeUnpin for HrlFile
impl UnwindSafe for HrlFile
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