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
Source§fn clone(&self) -> FormatDiagnostics
fn clone(&self) -> FormatDiagnostics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze 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