pub struct FormatDiagnostics {
pub version: u32,
pub decl_count: u32,
pub total_bytes: usize,
pub magic_ok: bool,
pub checksum_ok: Option<bool>,
pub sections: Vec<String>,
}Expand description
Diagnostic information about a parsed OleanC file.
Fields§
§version: u32§decl_count: u32§total_bytes: usize§magic_ok: bool§checksum_ok: Option<bool>§sections: Vec<String>Implementations§
Source§impl FormatDiagnostics
impl FormatDiagnostics
Sourcepub fn from_bytes(data: &[u8]) -> Self
pub fn from_bytes(data: &[u8]) -> Self
Parse diagnostics from raw bytes.
Sourcepub fn is_well_formed(&self) -> bool
pub fn is_well_formed(&self) -> bool
Return whether the file appears well-formed.
Trait Implementations§
Source§impl Clone for FormatDiagnostics
impl Clone for FormatDiagnostics
Auto Trait Implementations§
impl Forget for FormatDiagnostics
impl Freeze for FormatDiagnostics
impl Move for FormatDiagnostics
impl RefUnwindSafe for FormatDiagnostics
impl Send for FormatDiagnostics
impl Sync for FormatDiagnostics
impl Unpin for FormatDiagnostics
impl UnsafeUnpin for FormatDiagnostics
impl UnwindSafe for FormatDiagnostics
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