pub struct ResolvedModelConfiguration<P> { /* private fields */ }Expand description
Portable configuration plus the architecture-owned plan produced while resolving it.
Implementations§
Source§impl<P> ResolvedModelConfiguration<P>
impl<P> ResolvedModelConfiguration<P>
Sourcepub fn new(configuration: ModelConfiguration, architecture_plan: P) -> Self
pub fn new(configuration: ModelConfiguration, architecture_plan: P) -> Self
Couples one portable configuration with the exact plan derived from it.
Sourcepub const fn configuration(&self) -> &ModelConfiguration
pub const fn configuration(&self) -> &ModelConfiguration
Portable configuration facts used by neutral orchestration.
Sourcepub const fn architecture_plan(&self) -> &P
pub const fn architecture_plan(&self) -> &P
Architecture-owned plan derived from the exact configuration.
Sourcepub fn into_parts(self) -> (ModelConfiguration, P)
pub fn into_parts(self) -> (ModelConfiguration, P)
Separates the portable facts from architecture-owned state.
Trait Implementations§
Source§impl<P: Clone> Clone for ResolvedModelConfiguration<P>
impl<P: Clone> Clone for ResolvedModelConfiguration<P>
Source§fn clone(&self) -> ResolvedModelConfiguration<P>
fn clone(&self) -> ResolvedModelConfiguration<P>
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 moreAuto Trait Implementations§
impl<P> Freeze for ResolvedModelConfiguration<P>where
P: Freeze,
impl<P> RefUnwindSafe for ResolvedModelConfiguration<P>where
P: RefUnwindSafe,
impl<P> Send for ResolvedModelConfiguration<P>where
P: Send,
impl<P> Sync for ResolvedModelConfiguration<P>where
P: Sync,
impl<P> Unpin for ResolvedModelConfiguration<P>where
P: Unpin,
impl<P> UnsafeUnpin for ResolvedModelConfiguration<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for ResolvedModelConfiguration<P>where
P: 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