pub struct DecodeResult {
pub ir: CadIr,
pub report: DecodeReport,
pub source_fidelity: SourceFidelity,
}Expand description
A decoded document plus its loss report.
Fields§
§ir: CadIrThe decoded IR.
report: DecodeReportWhat was transferred and what was lost.
source_fidelity: SourceFidelityDecode-time annotations and retained native records.
Implementations§
Source§impl DecodeResult
impl DecodeResult
Sourcepub fn new(ir: CadIr, report: DecodeReport) -> Self
pub fn new(ir: CadIr, report: DecodeReport) -> Self
Build a result after canonicalizing the document’s arena order.
Sourcepub fn with_source_fidelity(
ir: CadIr,
report: DecodeReport,
source_fidelity: SourceFidelity,
) -> Self
pub fn with_source_fidelity( ir: CadIr, report: DecodeReport, source_fidelity: SourceFidelity, ) -> Self
Build a result with an explicit source-fidelity sidecar.
Trait Implementations§
Source§impl Clone for DecodeResult
impl Clone for DecodeResult
Source§fn clone(&self) -> DecodeResult
fn clone(&self) -> DecodeResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeResult
impl Debug for DecodeResult
Source§impl PartialEq for DecodeResult
impl PartialEq for DecodeResult
impl StructuralPartialEq for DecodeResult
Auto Trait Implementations§
impl Freeze for DecodeResult
impl RefUnwindSafe for DecodeResult
impl Send for DecodeResult
impl Sync for DecodeResult
impl Unpin for DecodeResult
impl UnsafeUnpin for DecodeResult
impl UnwindSafe for DecodeResult
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