pub struct InMemoryAdapter<T> { /* private fields */ }Expand description
Deterministic adapter for public API tests and embedding examples.
Implementations§
Source§impl<T> InMemoryAdapter<T>
impl<T> InMemoryAdapter<T>
Sourcepub const fn new(
output: T,
outcomes: Vec<ConversionOutcome>,
diagnostics: Vec<Diagnostic>,
) -> Self
pub const fn new( output: T, outcomes: Vec<ConversionOutcome>, diagnostics: Vec<Diagnostic>, ) -> Self
Creates an adapter with caller-selected validated-plan inputs.
Trait Implementations§
Source§impl<T: Clone> Clone for InMemoryAdapter<T>
impl<T: Clone> Clone for InMemoryAdapter<T>
Source§fn clone(&self) -> InMemoryAdapter<T>
fn clone(&self) -> InMemoryAdapter<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 InMemoryAdapter<T>
impl<T: Debug> Debug for InMemoryAdapter<T>
impl<T: Eq> Eq for InMemoryAdapter<T>
Source§impl<T: Clone> ExportAdapter for InMemoryAdapter<T>
impl<T: Clone> ExportAdapter for InMemoryAdapter<T>
Source§fn plan(
&self,
_application: &Application,
_target: &TargetProfile,
) -> Result<ConversionPlan<Self::Output>, PlanError>
fn plan( &self, _application: &Application, _target: &TargetProfile, ) -> Result<ConversionPlan<Self::Output>, PlanError>
Builds a validated candidate plan for the explicit target profile. Read more
Source§impl<T> ImportAdapter for InMemoryAdapter<T>
impl<T> ImportAdapter for InMemoryAdapter<T>
Source§type Source = Application
type Source = Application
Native source model accepted by this adapter.
Source§fn import(&self, source: &Self::Source) -> ImportResult
fn import(&self, source: &Self::Source) -> ImportResult
Imports one source without reading ambient process state.
Source§impl<T: PartialEq> PartialEq for InMemoryAdapter<T>
impl<T: PartialEq> PartialEq for InMemoryAdapter<T>
impl<T: PartialEq> StructuralPartialEq for InMemoryAdapter<T>
Auto Trait Implementations§
impl<T> Freeze for InMemoryAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for InMemoryAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for InMemoryAdapter<T>where
T: Send,
impl<T> Sync for InMemoryAdapter<T>where
T: Sync,
impl<T> Unpin for InMemoryAdapter<T>where
T: Unpin,
impl<T> UnsafeUnpin for InMemoryAdapter<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for InMemoryAdapter<T>where
T: UnwindSafe,
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