pub struct PlanOutcome<T> { /* private fields */ }Expand description
Successful planning result plus diagnostics.
Implementations§
Source§impl<T> PlanOutcome<T>
impl<T> PlanOutcome<T>
Sourcepub const fn new(value: T, diagnostics: DiagnosticSet) -> Self
pub const fn new(value: T, diagnostics: DiagnosticSet) -> Self
Creates a planning outcome.
Sourcepub const fn diagnostics(&self) -> &DiagnosticSet
pub const fn diagnostics(&self) -> &DiagnosticSet
Returns the diagnostics.
Sourcepub fn into_parts(self) -> (T, DiagnosticSet)
pub fn into_parts(self) -> (T, DiagnosticSet)
Consumes this outcome into its parts.
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Consumes this outcome into its planned value.
Source§impl PlanOutcome<PlannedSchema>
impl PlanOutcome<PlannedSchema>
Sourcepub fn mappings(&self) -> &[SchemaMapping]
pub fn mappings(&self) -> &[SchemaMapping]
Returns planned column mappings.
Trait Implementations§
Source§impl<T: Clone> Clone for PlanOutcome<T>
impl<T: Clone> Clone for PlanOutcome<T>
Source§fn clone(&self) -> PlanOutcome<T>
fn clone(&self) -> PlanOutcome<T>
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<T: Debug> Debug for PlanOutcome<T>
impl<T: Debug> Debug for PlanOutcome<T>
impl<T: Eq> Eq for PlanOutcome<T>
Source§impl<T: PartialEq> PartialEq for PlanOutcome<T>
impl<T: PartialEq> PartialEq for PlanOutcome<T>
impl<T: PartialEq> StructuralPartialEq for PlanOutcome<T>
Auto Trait Implementations§
impl<T> Freeze for PlanOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for PlanOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for PlanOutcome<T>where
T: Send,
impl<T> Sync for PlanOutcome<T>where
T: Sync,
impl<T> Unpin for PlanOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for PlanOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PlanOutcome<T>where
T: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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