pub struct OleanArchive { /* private fields */ }Expand description
A multi-file archive of OleanC declarations.
Implementations§
Source§impl OleanArchive
impl OleanArchive
Sourcepub fn add_file(&mut self, name: impl Into<String>, decls: Vec<SerialDecl>)
pub fn add_file(&mut self, name: impl Into<String>, decls: Vec<SerialDecl>)
Add a file to the archive.
Sourcepub fn total_decls(&self) -> usize
pub fn total_decls(&self) -> usize
Return the total number of declarations across all files.
Sourcepub fn file_count(&self) -> usize
pub fn file_count(&self) -> usize
Return the number of files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OleanArchive
impl RefUnwindSafe for OleanArchive
impl Send for OleanArchive
impl Sync for OleanArchive
impl Unpin for OleanArchive
impl UnsafeUnpin for OleanArchive
impl UnwindSafe for OleanArchive
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