#[non_exhaustive]pub struct Resolved {
pub source: Box<dyn Source>,
pub rung: Rung,
pub report: FidelityReport,
}Expand description
A source prepared for a specific container, with the cost of preparing it.
#[non_exhaustive]: this struct is constructed only inside stuffr-core
(see the constructors in this module) and destructured everywhere else —
every Container::open impl will do let Resolved { source, rung, report } = resolved;. A struct in that shape — destructured downstream, never
constructed — takes the attribute for free: there is no
..Default::default() literal to break, only a future field to add
without breaking every format crate’s destructure at once. See the
#[non_exhaustive] section of CONTRIBUTING.md.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: Box<dyn Source>§rung: Rung§report: FidelityReportTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Resolved
impl !Sync for Resolved
impl !UnwindSafe for Resolved
impl Freeze for Resolved
impl Send for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
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